agenticweb.wiki

Markdown for Agents

Category: 4 · Read (read) · Form: HTTP content-negotiation header (http-header) · Last checked · 30 primary sources

This page is about Cloudflare's Markdown for Agents feature (Accept: text/markdown). For a site-level index of LLM-readable pages, see llms.txt; for the AI-use preferences it attaches, see Content Signals Policy. [1]

In brief: Cloudflare Markdown for Agents lets AI crawlers and assistants request a clean Markdown representation of any web page on an enabled domain instead of downloading layout-heavy HTML. Rather than forcing agents to strip navigation clutter client-side or requiring publishers to host parallel scraping endpoints, the CDN edge intercepts HTTP requests carrying Accept: text/markdown and converts the origin HTML into Content-Type: text/markdown; charset=utf-8 in real time. [1][2]

Markdown for Agents is a Cloudflare edge content-negotiation feature that converts origin HTML pages into structured Markdown on the fly when an HTTP client requests Accept: text/markdown, reducing markup token overhead for AI agents. [1] Announced in Beta by Celso Martinho and Will Allen on 2026-02-12, Markdown for Agents is Generally Available as of 2026-11-09, with conversion analytics, logs, a playground, and traces. [2][3] When a request includes text/markdown in Accept, Cloudflare fetches the origin HTML, converts it to Markdown, and serves Content-Type: text/markdown; charset=utf-8 with Vary: Accept (preserving existing origin Vary dimensions so caches separate HTML and Markdown variants). If the origin omits a content-signal header, Cloudflare attaches the default policy Content-Signal: ai-train=yes, search=yes, ai-input=yes. [1] An October 9, 2026 update moved conversion to an in-process streaming engine at the edge, raising the decompressed HTML limit from 2 MiB to 6 MiB (6,291,456 bytes) while removing Content-Length, x-markdown-tokens, and x-original-tokens from converted responses. [4]

Problem and scope

AI agents require structured data from a Web built for human browsers, where raw HTML spends tokens on markup with no semantic value: a Markdown heading (## About Us) costs roughly 3 tokens compared with 12–15 tokens for its HTML equivalent before navigation and script tags. Cloudflare's February 2026 launch blog post measured 16,180 tokens in HTML versus 3,150 tokens when converted to Markdown—an 80% reduction in token usage. [1][2] Instead of requiring agents to parse raw HTML or origins to maintain separate scraping endpoints, Cloudflare intercepts Accept: text/markdown requests at the CDN edge, strips layout boilerplate during pre-processing, and emits structured Markdown with extracted <meta> YAML frontmatter and preserved JSON-LD blocks. [1] Edge conversion applies only to HTML responses up to 6 MiB (6,291,456 bytes) after decompression on paid Pro, Business, Enterprise, and SSL for SaaS zones; for other document types or client-side rendering, Cloudflare points applications to Workers AI AI.toMarkdown() or the Browser Run /markdown endpoint. [1]

February 2026 launch-era negotiation sequence (from the introductory blog post)

February 2026 launch-era negotiation sequence (from the introductory blog post)
The client sends Accept: text/markdown. Cloudflare fetches the origin HTML and returns content-type: text/markdown; charset=utf-8 with vary: accept, x-markdown-tokens: 725, and content-signal: ai-train=yes, search=yes, ai-input=yes. This diagram reflects the February 2026 launch-era blog specimen (including x-markdown-tokens in the sample header block). [2]

February 2026 launch-era request and response specimen

curl https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/ \
  -H "Accept: text/markdown"

HTTP/2 200
date: Wed, 11 Feb 2026 11:44:48 GMT
content-type: text/markdown; charset=utf-8
content-length: 2899
vary: accept
x-markdown-tokens: 725
content-signal: ai-train=yes, search=yes, ai-input=yes

---
title: Markdown for Agents · Cloudflare Agents docs
---

## What is Markdown for Agents

The ability to parse and convert HTML to Markdown has become foundational for AI.

A request carrying Accept: text/markdown and the converted HTTP/2 200 response, including x-markdown-tokens: 725 and content-signal: ai-train=yes, search=yes, ai-input=yes. This specimen reproduces the February 2026 launch blog example (which showed Content-Length and x-markdown-tokens before the October 2026 streaming conversion update). [2]

Accept negotiation, response headers, and static Markdown siblings

On an enabled zone, Markdown for Agents is content negotiation: the client names text/markdown in Accept, and Cloudflare converts origin HTML before responding. Cloudflare's developer docs also publish that same Markdown at a static sibling path and list pages from llms.txt. [1][5]

Streaming conversion limits, Vary caching, and Free-plan workarounds

On 9 October 2026 Cloudflare's edge converter moved to an in-process streaming engine and raised its HTML size cap. Negotiated Markdown responses carry Vary: Accept, which separates HTML and Markdown in caches that key on Vary. Because the edge converter is not available on the Free plan and Cloudflare's Free cache stores a single variant per URL regardless of Vary, Free-plan operators serving Markdown from their own origin must split the cache key or publish distinct .md URLs. [4][8]

Adoption and ecosystem

Selected verified implementations (19 probed or cited examples across 3 tables; non-exhaustive — see Ecosystem censuses below for ecosystem-wide totals).

Origins & documentation hosts serving text/markdown

ActorRoleStatusNegotiation header, token count & scopeSource
Cloudflare (Edge network, Developer Docs & Blog)Edge network & documentationLive (HTTP 200) · checked 2026-11-04Per-zone edge conversion (Accept: text/markdown -> text/markdown; charset=utf-8, content-signal: ai-train=yes, search=yes, ai-input=yes); live on Docs and Blog.Cloudflare, Markdown for Agents (modified 2026-10-09; fetched 2026-11-04) [1] · Celso Martinho and Will Allen, Introducing Markdown for Agents (2026-02-12; fetched 2026-11-04) [2][3]
Read the DocsDocs platform & hostLive (HTTP 200) · checked 2026-11-03Enabled automatically across hosted docs; live Accept: text/markdown probe returns text/markdown; charset=utf-8 (vary: Accept-Encoding, accept).Read the Docs, Markdown for AI agents [16] · Read the Docs stable docs (fetched 2026-11-03) [17] · Cloudflare, More efficient Markdown for Agents conversion (2026-10-09) [4]
ZepProduct siteLive (HTTP 200) · checked 2026-11-03Negotiated text/markdown; charset=utf-8 with content-signal: ai-train=yes, search=yes, ai-input=yes (server: cloudflare).Zep (fetched 2026-11-03) [18]
TaskadeProduct siteLive (HTTP 200) · checked 2026-11-03Negotiated text/markdown; charset=utf-8 with content-signal: ai-train=yes, search=yes, ai-input=yes (server: cloudflare).Taskade (fetched 2026-11-03) [19]
ReplicateProduct siteLive (HTTP 200) · checked 2026-11-03HTTP/2 200 text/markdown; charset=utf-8 with vary: Accept-Encoding, accept via server: cloudflare.Replicate (fetched 2026-11-03) [20]
PlanetScaleProduct siteLive (HTTP 200) · checked 2026-11-03HTTP/2 200 text/markdown; charset=utf-8 with vary: accept-encoding, accept via server: cloudflare.PlanetScale (fetched 2026-11-03) [21]
Cursor (Docs)Developer documentation (cursor.com/docs)Live (HTTP 200) · checked 2026-11-04HTTP 200 content-type: text/markdown; charset=utf-8, vary: Accept, link: </llms.txt>; rel="describedby".cursor.com/docs [22]
MintlifyDocumentation platformSupported · checked 2026-11-06Returns Markdown for Accept: text/markdown or Accept: text/plain.Mintlify, Markdown export [23]

Coding agents, harnesses & SDK tools

ActorRoleStatusAccept: text/markdown behavior & surfaceSource
Anthropic Claude CodeCoding agentObserved fetching · as of 2026-02-19WebFetch (v2.1.38) sends Accept: text/markdown, text/html, */* in Checkly's 2026-02-19 test.Anthropic, Tools reference [24] · Stefan Judis, Checkly (2026-02-19) [25]
CursorCoding agentObserved fetching · as of 2026-02-19Cursor 2.4.28 WebFetch sends Accept: text/markdown,text/html;q=0.9,application/xhtml+xml;q=0.8,application/xml;q=0.7,image/webp;q=0.6,*/*;q=0.5.Stefan Judis, Checkly (2026-02-19) [25]
OpenCodeCoding agentObserved fetching · checked 2026-10-30webfetch defaults to Markdown with text/markdown;q=1.0 above text/html;q=0.7.OpenCode, Tools [7] · OpenCode, webfetch.ts [26]
Cloudflare Agents SDKSDK toolSupported · as of 2026-10-12Agents SDK web_fetch tool requests Markdown directly from supporting sites (2026-10-12).Cloudflare, AI Changelog: web_fetch tool (2026-10-12) [27]
Gemini CLICoding agentDevelopment · checked 2026-11-04Floating main branch sends text/markdown, text/plain;q=0.9, application/json;q=0.9, text/html;q=0.8 ahead of */*;q=0.5; released 0.28.2 sent Accept: */*.google-gemini/gemini-cli (web-fetch.ts) [28] · Checkly (Feb 2026 study) [25]
Copilot Chat (VS Code)Coding agentObserved fetching · as of 2026-06-22Sends q-valued Accept: text/markdown (verified 2026-06-22).AcceptMarkdown client matrix [29]
Copilot CLICoding agentObserved fetching · as of 2026-06-22Sends Accept: text/markdown, text/html, */* (verified 2026-06-22).AcceptMarkdown client matrix [29]
Microsoft CopilotCoding agentObserved fetching · as of 2026-06-22Sends Accept: text/markdown, text/html, */* (verified 2026-06-22).AcceptMarkdown client matrix [29]
OpenClawCoding agentObserved fetching · as of 2026-05-04Sends Accept: text/markdown (verified 2026-05-04).AcceptMarkdown client matrix [29]
Codex CLICoding agentPartial · as of 2026-04-18Partial: follows an alternate text/markdown link (verified 2026-04-18).AcceptMarkdown client matrix [29]

Content-negotiation scanner

ActorRoleStatusChecksSource
AcceptMarkdown scannerNegotiation checkerListed · checked 2026-11-06Checks Accept: text/markdown, Vary: Accept, status 406, and q values.AcceptMarkdown checker [30]

Ecosystem censuses

+ Submit an implementation

See also

References

  1. Cloudflare, Markdown for Agents, modified 2026-10-09; fetched 2026-11-04 — https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/
  2. Celso Martinho and Will Allen (Cloudflare), Introducing Markdown for Agents, published 2026-02-12; modified 2026-07-15; fetched 2026-11-04 — https://blog.cloudflare.com/markdown-for-agents/
  3. Cloudflare, Markdown for Agents analytics and tracing, published 2026-11-09 — https://developers.cloudflare.com/changelog/post/2026-11-09-markdown-for-agents-observability/
  4. Cloudflare, More efficient Markdown for Agents conversion, published 2026-10-09 — https://developers.cloudflare.com/changelog/post/2026-10-09-markdown-for-agents-in-process-conversion/
  5. Cloudflare, AI consumability, last updated 20 August 2026; fetched 2026-11-06 — https://developers.cloudflare.com/style-guide/how-we-docs/ai-consumability
  6. Good for Bots, How to serve Markdown to AI agents with content negotiation, published 2026-10-03 — https://goodforbots.com/guides/markdown-negotiation
  7. OpenCode, Tools, checked 2026-10-30 — https://opencode.ai/v2/docs/tools/
  8. Michael Olson, Markdown for Agents on the Cloudflare Free Plan, February 2026; fetched 2026-11-06 — https://mwolson.org/blog/2026-02-14-markdown-for-agents-on-cloudflare-free-plan
  9. Cloudflare, Content encoding support for Markdown for Agents and other improvements, published 2026-02-16 — https://developers.cloudflare.com/changelog/post/2026-02-16-markdown-for-agents-improvements/
  10. R. Fielding, M. Nottingham, and J. Reschke (IETF), RFC 9110: HTTP Semantics, published June 2022 — https://www.rfc-editor.org/rfc/rfc9110.html
  11. S. Leonard (Penango, Inc. / IETF), RFC 7763: The text/markdown Media Type, published March 2016 — https://www.rfc-editor.org/rfc/rfc7763.html
  12. Jeremy Howard, The /llms.txt file, v2, published 2024-09-03; modified 2026-08-10; HTTP last-modified 2026-09-24 — https://llmstxt.org
  13. Vercel and Ora, Make your site readable by AI agents | Vercel Knowledge Base, published 2026-08-28; updated 2026-09-03; fetched 2026-10-30 — https://vercel.com/kb/guide/make-your-site-readable-by-ai-agents
  14. Cloudflare, Giving users choice with Cloudflare's new Content Signals Policy, published 2025-09-24; modified 2026-07-15 — https://blog.cloudflare.com/content-signals-policy/
  15. M. Koster, G. Illyes, H. Zeller, and L. Sassman (IETF), RFC 9309: Robots Exclusion Protocol, published September 2022 — https://www.rfc-editor.org/rfc/rfc9309.html
  16. Read the Docs, Markdown for AI agents, checked 2026-10-30 — https://docs.readthedocs.com/platform/latest/reference/markdown-for-agents.html
  17. Read the Docs, Read the Docs: documentation simplified, fetched 2026-11-03 — https://docs.readthedocs.com/platform/stable/
  18. Zep, Zep | The unified context layer for enterprise data, fetched 2026-11-03 — https://www.getzep.com/
  19. Taskade, Turn Business Processes Into Live Apps | Taskade Genesis, fetched 2026-11-03 — https://www.taskade.com/
  20. Replicate, Run and fine-tune models. Deploy custom models. All with one line of code., fetched 2026-11-03 — https://replicate.com/
  21. PlanetScale, PlanetScale - the world’s fastest and most scalable cloud hosting for Vitess, Neki, and Postgres, fetched 2026-11-03 — https://planetscale.com/
  22. Cursor (Docs), cursor.com/docs, checked 2026-11-04 — https://cursor.com/docs
  23. Mintlify, Markdown export, fetched 2026-11-06 — https://www.mintlify.com/docs/ai/markdown-export
  24. Anthropic, Tools reference, checked 2026-10-30 — https://code.claude.com/docs/en/tools-reference
  25. Stefan Judis (Checkly), The Current State of Content Negotiation for AI Agents (Feb 2026), published 2026-02-19 — https://www.checklyhq.com/blog/state-of-ai-agent-content-negotation/
  26. OpenCode, webfetch.ts, checked 2026-10-30 — https://raw.githubusercontent.com/anomalyco/opencode/dev/packages/core/src/tool/plugin/webfetch.ts
  27. Cloudflare, AI Changelog: New web_fetch tool in the Agents SDK, 2026-10-12 — https://developers.cloudflare.com/changelog/product-group/ai/
  28. Gemini CLI, google-gemini/gemini-cli (web-fetch.ts), checked 2026-11-04 — https://raw.githubusercontent.com/google-gemini/gemini-cli/main/packages/core/src/tools/web-fetch.ts
  29. AcceptMarkdown, AI agent support matrix, last updated 2026-06-22; fetched 2026-11-06 — https://acceptmarkdown.com/status
  30. AcceptMarkdown, Accept: text/markdown checker, fetched 2026-11-06 — https://acceptmarkdown.com/

JSON · Markdown · OKF v0.2