How Search for Agents Works

Cloudflare's AI Search has supported adding websites as data sources for some time, automatically crawling, converting, and indexing pages. Setting up an AI Search instance traditionally required manual creation and configuration, followed by integration work to make search endpoints available from a domain and ensure agents know how to use the index. Search for Agents changes this by placing the setup behind a toggle in the Cloudflare dashboard. Enabling it for a zone automatically creates an AI Search instance, begins content indexing, and makes search discoverable and available from the owner's domain.

Discoverability Through Meta Tags

Search functionality is of limited use if agents are unaware a search endpoint exists. To address this, Search for Agents automatically advertises the search endpoint on every page of a site. For HTML responses, metadata is added to the page's <head> section:

<meta name="agent:instructions" content="Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown.">
<meta name="agent:endpoint" content="https://developers.cloudflare.com/.well-known/search?q={query}">
<meta name="agent:method" content="GET">
<meta name="agent:documentation" content="https://developers.cloudflare.com/ai-search/how-to/search-for-agents/">

When Markdown for Agents is also enabled, agents requesting pages with Accept: text/markdown receive equivalent information in YAML front matter:

---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://developers.cloudflare.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

Agents can parse these signals to understand how to search the site without individually crawling pages.

Searching Content via the Search Endpoint

Once an agent recognizes a site offers a search endpoint, it can begin using it. A simple keyword query demonstrates the basic usage:

$ curl "https://developers.cloudflare.com/.well-known/search?q=cloudflare+artifacts"
# Search results for: "cloudflare artifacts"
## docs/artifacts/api/workers-binding/index.md (score: 1.000)
# Workers binding · Artifacts · Cloudflare Artifacts docs
Call Artifacts from a Worker binding.
---
## docs/artifacts/index.md (score: 0.951)
# Artifacts · Cloudflare Artifacts docs
Store, version, and share filesystem artifacts across Workers, APIs, and Git-compatible tools.

Agents can also formulate natural-language questions:

$ curl --get "https://developers.cloudflare.com/.well-known/search" --data-urlencode "q=What is the maximum push size for Cloudflare Artifacts?"
# Search results for: "What is the maximum push size for Cloudflare Artifacts?"
## docs/artifacts/platform/limits/index.limits-cloudflare-artifacts-docs.md (score: 1.000)
# Limits · Cloudflare Artifacts docs
Section: Limits · Cloudflare Artifacts docs
title: Limits
description: Review Artifacts platform limits.
pcx_content_type: reference
products:
  - artifacts
Limits that apply to creating, importing, cloning, and pushing Artifacts are detailed below.
These limits cover naming rules, storage, request rates for control-plane and Git operations, and the size of each push.
Feature | Limit
Control-plane request rate | 2,000 requests per 10 seconds per Artifacts namespace
Git request rate, per artifact | 2,000 requests per 10 seconds per artifact
Maximum storage per repository | 1 GB for repos created on or after 2026-09-29. Repos created earlier have a 10 GB limit.
Maximum storage per account | 1 TB (can be raised on request)
Maximum number of repositories | Unlimited
Maximum number of namespaces | Unlimited
Namespace name length | 2–63 characters
Namespace and repo names | Start with a letter or digit. Remaining characters may include letters, digits, ., _, and -
Maximum push size | 64 MiB per push. Split larger work into several smaller pushes.
Maximum objects per push | 50,000 objects such as file versions, folders, and commits.
Maximum file size | 32 MiB per file. Already-compressed files like images, video, or zip archives may be rejected slightly below 32 MiB.
Maximum ref updates per push | 1 MiB of branch and tag updates per push.
Maximum entries per folder | 100,000 files and subfolders in a single folder.

The search endpoint returns retrieved content in Markdown, not a generated answer. The agent already has its own model and user conversation; it simply needs relevant information from the site rather than another model's attempt to answer on its behalf.

The QUERY HTTP Method

A new HTTP QUERY method, an IETF Proposed Standard coauthored by Cloudflare's own James Snell and published in June 2026 as RFC 10008, allows clients to send search criteria in a request body safely and idempotently without modifying server state. This makes QUERY a good fit for AI search adoption. Major browser vendors have discussed the RFC, and multiple frameworks and clients either adopt it or are discussing adoption. Search for Agents supports QUERY natively, accepting either plain text or JSON request bodies:

# Plain text
curl -X QUERY 'https://developers.cloudflare.com/.well-known/search' \
  --data 'What is the maximum payload size per ingestion request in Basin Pipelines?'

# JSON
curl -X QUERY 'https://developers.cloudflare.com/.well-known/search' \
  --header 'Content-Type: application/json' \
  --data '{"q":"How many bulk import requests per minute does Email Service allow?"}'

Practical Use and Agent Integration

Search for Agents was enabled for Cloudflare's own developer documentation ahead of the announcement. In practice, agents open a session and ask questions; logs show the agent discovering the search endpoint on the homepage and then fetching /.well-known/search with the question. The correct answer returns within seconds. Once an agent discovers the search API, it is likely to reuse it multiple times within the same session whenever searching for content on the same site.

Because Search for Agents is powered by an AI Search instance in the user's account, all standard configuration options and features are available. Users can enable public REST API or MCP endpoints, use the service from Workers, or embed AI Search on a website for human visitors. Usage follows AI Search pricing, which includes ingesting content, storing the index's content, and serving queries, subject to the account's included usage and limits for both Workers Free and Paid plans.

Getting Started

Search for Agents is available to all customers starting from the announcement date. Free tier customers have usage limits. Enabling the feature is done via the Cloudflare dashboard under Quick Actions on a zone page, or through the API. After enabling, Cloudflare automatically creates the AI Search instance and begins crawling and indexing the zone's content. Configuration options such as reranking and cache settings can be adjusted at any time through the documentation. The domain's bot management settings, AI Crawl Control, and WAF configurations govern who can use the search endpoint and what content is visible.

Site owners interested in making their content searchable to agents can consult the Search for Agents developer docs for more information. The Cloudflare Developer Discord is also open for discussion with teams making their content accessible to agents.