Tool v1.0.0

web-markdown-navigator

获取网页并返回干净的 Markdown 格式而非原始 HTML。适用于需要 Markdown 输出的 URL 阅读、提取和摘要任务;当提取内容较少时,对 JavaScript 重度或单页应用页面使用浏览器回退方案。

ClawHub 更新于 2026-03-23 24 浏览
下载 SKILL

技能说明

获取网页并返回干净的 Markdown 格式而非原始 HTML。适用于需要 Markdown 输出的 URL 阅读、提取和摘要任务;当提取内容较少时,对 JavaScript 重度或单页应用页面使用浏览器回退方案。

使用场景

Fetch webpages and return clean markdown with browser fallback for JS-heavy sites

查看英文原始说明

Fetch webpages and return clean markdown instead of raw HTML. Use for URL reading, extraction, and summarization tasks where the user wants markdown output; use browser fallback for JS-heavy/SPA pages when extraction is thin.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/web-markdown-navigator
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

7 个文件 · 37 kB · zip 15 kB
手动下载 zip · 15 kB
SKILL.md text/markdown
---
name: web-markdown-navigator
description: Fetch webpages and return clean markdown instead of raw HTML. Use for URL reading, extraction, and summarization tasks where the user wants markdown output; use browser fallback for JS-heavy/SPA pages when extraction is thin.
---

# Web Markdown Navigator

Use this skill for deterministic URL → markdown extraction.

## Quick flow

1. Run script:
   - `cd /Users/pedrogonzalez/clawd/skills/web-markdown-navigator/scripts`
   - `node fetch-markdown.mjs "<url>" --max-chars 50000`
2. If exit code `0`, return markdown output.
3. If exit code `3` or `4`, or output is thin/boilerplate, use `browser` tool fallback to capture rendered content and return markdown summary.

## Script

`node scripts/fetch-markdown.mjs <url> [--max-chars N] [--timeout-ms N] [--json]`

Behavior:
- Layer 1: Fetch HTML + Mozilla Readability + Turndown markdown conversion.
- Layer 2: Fallback plain-text markdown if extraction is too thin.
- URL safety checks block localhost/private literal IPv4 hosts.

## Output requirements

- Return markdown only (no raw HTML dump).
- Preserve source URL in response.
- If truncated, include truncation note.
- If fallback was needed, mention method used (`readability` or `fallback-text`).

## Error handling

- `1` bad args
- `2` invalid/blocked URL
- `3` network/fetch/content-type failure
- `4` extraction failure/thin output

For extended notes and troubleshooting, read:
- `/Users/pedrogonzalez/clawd/skills/web-markdown-navigator/references/usage.md`

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。