Install
openclaw skills install smart-web-fetch智能网页抓取技能 - 替代内置 web_fetch,自动使用 Jina Reader / markdown.new / defuddle.md 清洗服务获取干净 Markdown。支持多级降级策略,大幅降低 Token 消耗。当 Agent 需要获取网页内容时使用本技能替代 web_fetch。
openclaw skills install smart-web-fetch智能网页内容获取技能,完全替代 web_fetch,自动通过清洗服务获取干净 Markdown。
# 获取清洗后的 Markdown(文本输出)
python3 {baseDir}/scripts/fetch.py "https://example.com/article"
# 获取 JSON 格式(包含元信息)
python3 {baseDir}/scripts/fetch.py "https://example.com/article" --json
当用户需要获取网页内容时:
用户: "帮我查一下 https://example.com/article 的内容"
Agent 应该:
1. 运行: python3 ~/.openclaw/skills/smart-web-fetch/scripts/fetch.py "https://example.com/article"
2. 直接获得清洗后的 Markdown 内容
{
"success": true,
"url": "https://r.jina.ai/http://example.com/article",
"content": "# Article Title\n\nClean markdown content here...",
"source": "jina",
"error": null
}
Jina Reader (首选)
https://r.jina.ai/http://{target}markdown.new (降级)
https://markdown.new/{target}defuddle.md (降级)
https://defuddle.md/{target}原始内容 (最终兜底)
为了强制使用本技能替代 web_fetch,在 openclaw.json 中配置:
{
"agents": {
"list": [
{
"id": "your-agent",
"tools": {
"deny": ["web_fetch"]
}
}
]
}
}
这样 Agent 就无法调用内置 web_fetch,只能通过本技能获取网页内容。