返回顶部
c

cf-markdown-agentsCF-Markdown代理

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
195
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

cf-markdown-agents

技能名称: cf-markdown-agents
详细描述:

Cloudflare Markdown for Agents

该技能支持通过Cloudflare的Markdown for Agents协议获取网页内容,可自动将HTML页面转换为清晰、结构化的Markdown格式。

什么是Markdown for Agents?

Cloudflare的Markdown for Agents是一项内容协商功能,具备以下特性:

  • - 在边缘节点自动将HTML转换为Markdown
  • 相比原始HTML减少约80%的令牌消耗
  • 返回适合AI处理的干净结构化内容
  • 添加x-markdown-tokens标头显示预估令牌数量
  • 包含Content-Signal标头用于AI使用权限管理

使用方法

基础获取

使用提供的脚本获取支持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

响应标头

  • - content-type: text/markdown; charset=utf-8 - 内容为Markdown格式
  • x-markdown-tokens: - 预估令牌数量
  • content-signal: ai-train=yes, search=yes, ai-input=yes - 使用权限

支持站点

任何启用Markdown for Agents功能的Cloudflare站点:

  • - Cloudflare开发者文档(developers.cloudflare.com)
  • Cloudflare博客(blog.cloudflare.com)
  • 在Cloudflare控制面板中启用该功能的任意站点

优势对比

方面HTMLMarkdown
令牌数16,1803,150
减少量
- | ~80% | | 结构 | 复杂 | 简洁 | | AI解析 | 困难 | 容易 |

参考资料

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cf-markdown-agents-1776108603 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 cf-markdown-agents-1776108603 技能

通过命令行安装

skillhub install cf-markdown-agents-1776108603

下载

⬇ 下载 cf-markdown-agents v1.0.0(免费)

文件大小: 5.86 KB | 发布时间: 2026-4-15 12:01

v1.0.0 最新 2026-4-15 12:01
Initial release of cf-markdown-agents.

- Enables fetching web content using Cloudflare's Markdown for Agents protocol.
- Automatically converts HTML pages to clean, structured Markdown format with ~80% token reduction.
- Provides examples for usage with shell scripts, TypeScript/JavaScript, and cURL.
- Describes response headers including token count and AI usage permissions.
- Lists supported sites and summarizes key benefits for AI processing.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部