How we made ziptool.app searchable by AI agents
Our traffic data has been telling a specific story for a while: in a 28-day measurement this autumn, chatgpt.com was our single biggest referrer — about half our users, ahead of organic search at 36%. People no longer only search "unzip online" and click; increasingly they ask an assistant, and the assistant either knows our pages or it does not. Whether it knows depends on something we control: how searchable our content is to a machine that reads differently than a human does.
This week Cloudflare shipped Search for Agents — a zone-level toggle that indexes a site and exposes a search endpoint on its own domain, for AI agents to discover and query. We turned it on the day after it shipped. This post is the engineering log: what actually got built, what an agent now sees when it touches any of our 203 pages, the endpoints it can call, and the two design choices we made deliberately — retrieval over generation, and what will never be in the index.
It pairs with the earlier engineering logs: how we open 4 GB archives in your browser and how to prove a web tool never uploads your files. Same rule as those: every number below is measured or quoted from what actually shipped.
What an agent used to see, and why it was not enough
ZipTool is a fully static site: 203 pages, each prerendered to a flat HTML file and served from a CDN. That is already a decent hand for AI retrieval — every page is fetchable first-byte, no JavaScript is required to read the content, per-page FAQ blocks sit in the markup, and honest limits are written where an agent can quote them. Assistants have been citing our pages for months; that is how chatgpt.com became our top referrer.
But there was a structural inefficiency. An assistant answering "can this tool open a password-protected RAR?" has to find the right page before it can quote the right answer. It fetches a page, follows links, guesses again. A 203-page site is small, but the failure mode scales badly: the agent burns turns and context on navigation instead of answering, and on questions our pages answer perfectly it can still miss.
Search inverts that. One query, one request, the relevant chunks with relevance scores. The agent already has a model — what it lacks is our corpus, delivered at the moment of the question.
- Static, first-byte-fetchable pages are the raw material; assistants already cite them.
- The bottleneck is discovery and navigation: the agent has to guess which page holds the answer.
- A search endpoint collapses navigation into one request — the corpus, at question time.
The toggle: what Cloudflare actually built
Search for Agents is a switch in the Cloudflare dashboard. Behind it: an AI Search instance is created, the site is crawled (sitemap first, then links), every page is converted to Markdown, chunked, embedded, and indexed — hybrid retrieval, meaning vector similarity fused with keyword matching. The search endpoint is then served from your own domain at /.well-known/search, no authentication.
The part that matters most to us was on our side of the ledger: zero code, zero bundle bytes. The service runs at the network layer. Every HTML response passing through the edge gets four meta tags injected into its head — our prerendered documents do not know it is happening, client hydration is untouched, and nothing at all loads in the browser. Our performance budget survives a new feature without a line of code being spent.
The receipts from the first crawl: started 21:50:28, finished 21:59:49 — 9 minutes 21 seconds for the full site. 247 files seen, 203 indexed: exactly our sitemap count, none of the junk. (Our robots.txt excludes parameterized ?zip= deep-link URLs from crawlers; none made it in.) One URL errored — /open/url, a 404 that some external site links to; the crawler reported it and moved on, which is the correct behavior.
- One dashboard toggle → crawl, Markdown conversion, chunking, embeddings, hybrid index.
- Network-layer only: four meta tags injected per HTML response; no client code, no bundle cost.
- First crawl 9m21s; 203/203 sitemap pages indexed; junk URLs excluded by robots.txt stayed out.
What an agent sees now
Every page now carries its own discovery instructions. The tags, verbatim from any page on the site:
An agent that lands anywhere — from a search engine, a citation, or a pasted link — learns in one response that it should search instead of crawl, and the tags tell it how: GET with a query parameter, or the new HTTP QUERY method (RFC 10008, published June 2026) for long natural-language questions. Results come back as Markdown chunks from real pages, each with a relevance score and its source URL — nothing is generated. The evening we enabled it, the smoke tests read like this:
<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://ziptool.app/.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/">$ curl "https://ziptool.app/.well-known/search?q=how+to+open+a+rar+file+in+the+browser"
# Search results for: "how to open a rar file in the browser"
## https://ziptool.app/how-to-open-a-rar-file (score: 1.000)
The fastest way to open a .rar file is in your browser: drop it onto
ZipTool and the file tree appears instantly...
$ curl "https://ziptool.app/.well-known/search?q=can+this+tool+open+password+protected+rar+files"
## https://ziptool.app/extract-rar-online (score: 1.000)
"Yes, when you have the password. ZipTool decrypts password-protected
RAR archives in the browser — RAR5 AES and the older RAR3 scheme —
through the same in-page prompt it uses for ZIP and 7z. Decryption is
local; the password never leaves the tab. Without the password, no
honest tool can open an encrypted archive."- One response teaches both the endpoint and the method — discovery is solved per-page, not per-session.
- The password-RAR receipt matters most: retrieval returns exactly what the page says — the same words an agent should quote — whether it is a capability or a limit, at the same score.
Retrieval, not generation
The instance also offers an OpenAI-compatible chat-completions endpoint — query it and get a generated, RAG-style answer. We turned it off the same day, for two reasons.
The first is architectural honesty. An answer generated on our domain is a claim we did not write and cannot verify. A model paraphrasing our pages can flatten a limit into a hedge — "password-protected RARs may not be fully supported" is precisely the wrong answer to give, and no FAQ we wrote says it. Retrieved text, scored and sourced, is text we shipped: the same rules that keep our pages truthful govern the chunks the endpoint returns, because they are the same text. And the agent asking has a model already — usually a better one than we would pick for it. Our job is the corpus.
The second is unglamorous but real: an unauthenticated, unmetered LLM endpoint on your domain is a free API for whoever finds it, billed to you — one RAG answer burned about 145 Workers AI neurons on a test question. The search endpoint costs only retrieval queries: a generous monthly allowance is included, cents per thousand after, and there is nothing in it a scrap-happy script wants. So the public surface is search, yes; generation, no. We also set a rate limit — 100 requests per minute — that no human and no honest agent will ever notice. If we ever want a generated-answer UI for humans, we will build it deliberately, with visible citations, and own every sentence of the output.
- Generated answers on our domain are claims we did not write — hedges get manufactured out of our clear "no" statements.
- Retrieved chunks are the text we shipped; the honesty rules apply to them automatically.
- An open LLM endpoint is an abuse-and-billing magnet; retrieval-only caps the blast radius. Rate-limited at 100 req/min.
The same index, over MCP
For agents that speak the Model Context Protocol rather than fetching URLs, the same index is an MCP server — one connection and the agent has a search tool whose description we wrote, so the discovery problem is solved at connection time rather than at crawl time. It is listed in the official MCP Registry as app.ziptool/search — published the same day, with domain-ownership verified by a DNS TXT record — so MCP clients can find it the way an app store lists an app:
{
"mcpServers": {
"ziptool": {
"url": "https://ai.ziptool.app/mcp"
}
}
}- GET
https://ziptool.app/.well-known/search?q=…— the discovery-advertised endpoint: Markdown chunks, scores, source URLs, no auth. - POST
https://ai.ziptool.app/search— the same index as JSON ({"messages":[{"role":"user","content":"…"}]}), for scripts and custom clients. - MCP
https://ai.ziptool.app/mcp— the same index as a tool, for MCP-speaking agents. - Chat completions — deliberately disabled; see above.
What is in the index — and what never can be
The corpus is every public documentation page: the format reference pages, the how-tos, the viewer pages, these blog posts. What is not in it is anything a user ever loaded — and because of how the tool is built, that is not a policy, it is an impossibility. ZipTool has no upload path: your archive is parsed in your tab and the bytes never go anywhere. An index of the site’s public pages cannot leak user data, because user data never touches the site.
Making the documentation more searchable makes the privacy story stronger, not weaker — the documents exist to be read, and the search endpoint just lets an agent read them in one hop. Queries to it hit a search service the same way a fetch of the page would, and nothing search-related loads on our own pages: the endpoint is for agents calling it externally, not a widget in the tool. The first byte of the tool stays exactly as clean as the no-uploads post promises. And as with every claim on this site: load the tool, go offline, and keep using it. The tests take two minutes.
- Index = public pages only. User files cannot be in it because they never leave the browser — architecture, not policy.
- No search widget on our pages; tool-page first byte is unchanged.
- The offline test from the no-uploads post still passes — searchability did not touch it.
The checklist: making your own site agent-searchable
The point of logging all this is that it generalizes. If you run a content site or a tool with documentation, the same shape works on any stack — the Cloudflare toggle is the easy path, but the recipe is stack-agnostic:
- Write honest per-page content first. An index amplifies what exists — thin pages amplify as thin. Stating your real limits plainly is what makes an agent (and its user) trust the capabilities you do claim.
- Keep the sitemap clean. Our first crawl indexed exactly our sitemap count because parameterized junk URLs were excluded before any crawler arrived. Crawl hygiene is index hygiene.
- Expose a search endpoint on your own domain, unauthenticated, returning source text, not generated answers. The agent has a model; feed it — do not speak for it.
- Advertise the endpoint from every page: the meta-tag convention above, or an llms.txt index. Discovery is the half everyone forgets — a search endpoint no agent knows about is a tree falling in an empty forest.
- Verify with receipts the day you enable it: curl the endpoint with your money queries; and if your host injects the discovery tags at the edge, check what the CDN actually serves (with
Accept: text/html), not your local build output. - Smoke-test the honest failures too — the queries where your answer is "no". That is where retrieval quality separates from marketing copy, and it is the answer agents learn to trust you by.