---
title: "Accept-header tester · Replay AI agent requests for markdown · mdream"
description: "Replay real AI agent requests against your URL. See what Claude Code, Cursor, Codex, ChatGPT, Perplexity, and Gemini get back when they ask for markdown. Pass/fail lights for Vary, 406, and q-values."
canonical_url: "https://mdream.dev/tools/accept-header"
meta:
  "og:description": "Replay real AI-agent requests against your URL. See what Claude Code, Cursor, and Codex get back."
  "og:image": "https://mdream.dev/_og/s/o_eae7f5ebd1be5e1d.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Accept-header tester for AI agents"
  "twitter:image": "https://mdream.dev/_og/s/o_eae7f5ebd1be5e1d.png"
---

> Index of every page on this site: [llms.txt](https://mdream.dev/llms.txt)

[Home](https://mdream.dev/)

# **Accept-header tester **

Replay real AI-agent requests against any URL. See what Claude Code, Cursor, and Codex actually get back, with pass/fail lights for `Vary`, `406`, and q-values.

zzz

Ready to probe

Pick an agent and enter a URL to test.

## What do these lights mean?

- MD — server responded with `text/markdown` or `text/plain`.
- Vary — response includes `Vary: Accept`, so caches won't mix HTML and markdown responses.
- 406 — server returns spec-compliant 406 on unsatisfiable Accept values. Optional but nice.
- q= — server honors Accept q-values, serving markdown when the client marks it as preferred.

[Read the full guide](https://mdream.dev/guides/accept-markdown-header)

## Agent support matrix

Markdown response support by AI agent

| Agent | Accept | User-Agent | MD |
| --- | --- | --- | --- |
| Claude Code | text/markdown, text/html, \*/\* | Claude-User/1.0 | full support |
| Cursor | text/markdown, text/plain;q=0.9, \*/\*;q=0.8 | Cursor/1.0 | full support |
| Codex CLI | text/html, \*/\* | codex/1.0 | partial support |
| ChatGPT | \*/\* | ChatGPT-User/1.0 | none support |
| Perplexity | \*/\* | PerplexityBot/1.0 | none support |
| Gemini | \*/\* | Google-Extended | none support |

## Frequently Asked Questions

Content negotiation is an HTTP mechanism where the client (browser, AI agent) advertises which response formats it understands via the Accept header. The server picks the best match and serves it with a matching Content-Type. For AI agents, Accept: text/markdown signals that the client prefers clean markdown over rendered HTML.

Markdown is 40–80% smaller than the equivalent HTML, strips noise (nav, scripts, styles), and maps directly to the token-efficient format LLMs internally convert to anyway. Serving markdown on Accept negotiation is faster, cheaper, and gives agents better answers.

As of 2026, only Claude Code and Cursor advertise text/markdown in their Accept header. OpenAI Codex CLI follows \<link rel="alternate" type="text/markdown"> hints in HTML instead. ChatGPT, Perplexity, and Gemini fetchers still send \*/\* and parse whatever comes back.

406 Not Acceptable is the spec-compliant response when the client explicitly only wants a format the server cannot produce. Correctly returning 406 for Accept: application/vnd.pandoc is a sign of a well-implemented content negotiation layer.

## Scan the whole site

[<h3>**AI search visibility audit **</h3>Accept-header + llms.txt + sitemap.md + robots + token savings. One shareable report.](https://mdream.dev/tools/ai-audit)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://mdream.dev/#website","@type":"WebSite","description":"Convert HTML to Markdown online. 33x faster than Turndown, 38% fewer tokens. Free, zero dependencies, LLM optimized. Available as npm package, Rust crate, WASM, and CLI.","name":"mdream","url":"https://mdream.dev/","publisher":{"@id":"https://mdream.dev/#identity"}},{"@id":"https://mdream.dev/tools/accept-header#webpage","@type":"WebPage","description":"Replay AI agent Accept-header requests against any URL and see what the server returns.","name":"Accept-header tester","url":"https://mdream.dev/tools/accept-header","isPartOf":{"@id":"https://mdream.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://mdream.dev/tools/accept-header"]}],"primaryImageOfPage":{"@id":"https://mdream.dev/#logo"}},{"@id":"https://mdream.dev/#identity","@type":"Organization","name":"Mdream","url":"https://mdream.dev","logo":{"@id":"https://mdream.dev/#logo"}},{"@id":"https://mdream.dev/tools/accept-header#/schema/question/1","@type":"Question","inLanguage":"en","name":"What is content negotiation?","acceptedAnswer":{"@type":"Answer","text":"Content negotiation is an HTTP mechanism where the client (browser, AI agent) advertises which response formats it understands via the Accept header. The server picks the best match and serves it with a matching Content-Type. For AI agents, Accept: text/markdown signals that the client prefers clean markdown over rendered HTML."}},{"@id":"https://mdream.dev/tools/accept-header#/schema/question/2","@type":"Question","inLanguage":"en","name":"Why should my site serve markdown?","acceptedAnswer":{"@type":"Answer","text":"Markdown is 40–80% smaller than the equivalent HTML, strips noise (nav, scripts, styles), and maps directly to the token-efficient format LLMs internally convert to anyway. Serving markdown on Accept negotiation is faster, cheaper, and gives agents better answers."}},{"@id":"https://mdream.dev/tools/accept-header#/schema/question/3","@type":"Question","inLanguage":"en","name":"Which agents actually send Accept: text/markdown?","acceptedAnswer":{"@type":"Answer","text":"As of 2026, only Claude Code and Cursor advertise text/markdown in their Accept header. OpenAI Codex CLI follows <link rel=\"alternate\" type=\"text/markdown\"> hints in HTML instead. ChatGPT, Perplexity, and Gemini fetchers still send */* and parse whatever comes back."}},{"@id":"https://mdream.dev/tools/accept-header#/schema/question/4","@type":"Question","inLanguage":"en","name":"What does the 406 light mean?","acceptedAnswer":{"@type":"Answer","text":"406 Not Acceptable is the spec-compliant response when the client explicitly only wants a format the server cannot produce. Correctly returning 406 for Accept: application/vnd.pandoc is a sign of a well-implemented content negotiation layer."}},{"@id":"https://mdream.dev/#logo","@type":"ImageObject","caption":"Mdream","contentUrl":"https://mdream.dev/logo.svg","inLanguage":"en","url":"https://mdream.dev/logo.svg"}]}
```

## Sitemap

See the full [sitemap](https://mdream.dev/sitemap.md) for all pages.
