简介
Markdown Browser
原始描述
Wrapper skill for OpenClaw web_fetch results. Use when you need MECE post-processing on fetched pages: policy decision from Content-Signal, privacy redaction...
通过你的 Agent 添加
安装目录:markdown-browser/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: markdown-browser
description: "Wrapper skill for OpenClaw web_fetch results. Use when you need MECE post-processing on fetched pages: policy decision from Content-Signal, privacy redaction, optional markdown normalization fallback, and stable output schema without re-implementing network fetch."
Markdown Browser Skills
This skill is an orchestration layer, not a replacement fetcher. It always keeps official web_fetch as the fetch source of truth.
MECE Architecture
- Fetch layer (official, exclusive)
- Use OpenClaw
web_fetch to retrieve the page.
- Do not call direct HTTP fetch inside this skill for normal operation.
- Policy layer (these skills)
- Parse
Content-Signal and compute policy_action.
- Current action focuses on
ai-input semantics: allow_input, block_input, needs_review.
- Privacy layer (these skills)
- Redact path/fragment/query values in output URL fields.
- Keep URL shape useful for debugging without leaking sensitive values.
- Normalization layer (these skills)
- If
contentType=text/markdown, keep content as-is.
- If
contentType=text/html, convert with turndown as fallback enhancement.
- For other content types, pass through text.
Execution Order
- Call official
web_fetch.
- Pass the result JSON into this wrapper.
- Optionally pass
Content-Signal and x-markdown-tokens header values if available.
- Use the returned normalized object for downstream agent logic.
Wrapper Tool
web_fetch to retrieve the page.Content-Signal and compute policy_action.ai-input semantics: allow_input, block_input, needs_review.contentType=text/markdown, keep content as-is.contentType=text/html, convert with turndown as fallback enhancement.- Call official
web_fetch. - Pass the result JSON into this wrapper.
- Optionally pass
Content-Signalandx-markdown-tokensheader values if available. - Use the returned normalized object for downstream agent logic.
Wrapper Tool
process_web_fetch_result({ web_fetch_result, content_signal_header, markdown_tokens_header })
Input:
web_fetch_result(required): JSON payload returned by OpenClawweb_fetch.content_signal_header(optional): rawContent-Signalheader string.markdown_tokens_header(optional): rawx-markdown-tokensheader value.
Output:
contentformat(markdown|html-fallback|text)token_estimate(number | null)content_signalpolicy_actionsource_url(redacted)status_codefallback_used
CLI Usage
# Install runtime dependency once inside the skill directory
npm install --omit=dev
# 1) Obtain a web_fetch payload first (from OpenClaw runtime)
# 2) Save it as /tmp/web_fetch.json
# 3) Run wrapper post-processing
node browser.js \
--input /tmp/web_fetch.json \
--content-signal "ai-input=yes, search=yes, ai-train=no" \
--markdown-tokens "1820"
# Install runtime dependency once inside the skill directory
npm install --omit=dev
# 1) Obtain a web_fetch payload first (from OpenClaw runtime)
# 2) Save it as /tmp/web_fetch.json
# 3) Run wrapper post-processing
node browser.js \
--input /tmp/web_fetch.json \
--content-signal "ai-input=yes, search=yes, ai-train=no" \
--markdown-tokens "1820"
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。