Install
openclaw skills install cf-markdown-agentsFetch web content using Cloudflare's Markdown for Agents protocol. Automatically converts HTML to Markdown with 80% token reduction. Use when fetching web pages for AI processing, web scraping, content extraction, or when the user mentions "Markdown for Agents", "cf-markdown", or needs structured web content in Markdown format.
openclaw skills install cf-markdown-agentsThis skill enables fetching web content using Cloudflare's Markdown for Agents protocol, which automatically converts HTML pages to clean, structured Markdown format.
Cloudflare's Markdown for Agents is a content negotiation feature that:
x-markdown-tokens header showing estimated token countContent-Signal headers for AI usage permissionsUse the provided script to fetch any URL with Markdown for Agents support:
scripts/fetch-markdown.sh <URL>
Example:
scripts/fetch-markdown.sh "https://developers.cloudflare.com/agents/"
TypeScript/JavaScript example:
const response = await fetch("https://example.com/page", {
headers: {
Accept: "text/markdown, text/html",
},
});
const tokenCount = response.headers.get("x-markdown-tokens");
const markdown = await response.text();
cURL example:
curl https://example.com/page -H "Accept: text/markdown"
content-type: text/markdown; charset=utf-8 - Content is Markdownx-markdown-tokens: <number> - Estimated token countcontent-signal: ai-train=yes, search=yes, ai-input=yes - Usage permissionsAny site using Cloudflare with Markdown for Agents enabled:
| Aspect | HTML | Markdown |
|---|---|---|
| Tokens | 16,180 | 3,150 |
| Reduction | - | ~80% |
| Structure | Complex | Clean |
| AI Parsing | Hard | Easy |