Fetch 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.
技能名称: cf-markdown-agents
详细描述:
该技能支持通过Cloudflare的Markdown for Agents协议获取网页内容,可自动将HTML页面转换为清晰、结构化的Markdown格式。
Cloudflare的Markdown for Agents是一项内容协商功能,具备以下特性:
使用提供的脚本获取支持Markdown for Agents的任意URL:
bash
scripts/fetch-markdown.sh
示例:
bash
scripts/fetch-markdown.sh https://developers.cloudflare.com/agents/
TypeScript/JavaScript示例:
typescript
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示例:
bash
curl https://example.com/page -H Accept: text/markdown
任何启用Markdown for Agents功能的Cloudflare站点:
| 方面 | HTML | Markdown |
|---|---|---|
| 令牌数 | 16,180 | 3,150 |
| 减少量 |
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 cf-markdown-agents-1776108603 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 cf-markdown-agents-1776108603 技能
skillhub install cf-markdown-agents-1776108603
文件大小: 5.86 KB | 发布时间: 2026-4-15 12:01