cf markdown agents
/install cf-markdown-agents
Cloudflare Markdown for Agents
This skill enables fetching web content using Cloudflare's Markdown for Agents protocol, which automatically converts HTML pages to clean, structured Markdown format.
What is Markdown for Agents?
Cloudflare's Markdown for Agents is a content negotiation feature that:
- Automatically converts HTML to Markdown at the edge
- Reduces token usage by ~80% compared to raw HTML
- Returns clean, structured content perfect for AI processing
- Adds
x-markdown-tokensheader showing estimated token count - Includes
Content-Signalheaders for AI usage permissions
Usage
Basic Fetch
Use the provided script to fetch any URL with Markdown for Agents support:
scripts/fetch-markdown.sh \x3CURL>
Example:
scripts/fetch-markdown.sh "https://developers.cloudflare.com/agents/"
In Code
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"
Response Headers
content-type: text/markdown; charset=utf-8- Content is Markdownx-markdown-tokens: \x3Cnumber>- Estimated token countcontent-signal: ai-train=yes, search=yes, ai-input=yes- Usage permissions
Supported Sites
Any site using Cloudflare with Markdown for Agents enabled:
- Cloudflare Developer Documentation (developers.cloudflare.com)
- Cloudflare Blog (blog.cloudflare.com)
- Any site with the feature enabled in Cloudflare dashboard
Benefits
| Aspect | HTML | Markdown |
|---|---|---|
| Tokens | 16,180 | 3,150 |
| Reduction | - | ~80% |
| Structure | Complex | Clean |
| AI Parsing | Hard | Easy |
References
- Full protocol details: references/protocol.md
- API examples: references/examples.md
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cf-markdown-agents - 安装完成后,直接呼叫该 Skill 的名称或使用
/cf-markdown-agents触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
cf markdown agents 是什么?
Fetch web content using Cloudflare's Markdown for Agents protocol. Automatically converts HTML to Markdown with 80% token reduction. Use when fetching web pa... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 227 次。
如何安装 cf markdown agents?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cf-markdown-agents」即可一键安装,无需额外配置。
cf markdown agents 是免费的吗?
是的,cf markdown agents 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
cf markdown agents 支持哪些平台?
cf markdown agents 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 cf markdown agents?
由 xinian5216(@xinian5216)开发并维护,当前版本 v1.0.0。