← 返回 Skills 市场
shikamaru-cc

Web Fetch

作者 shikamaru-cc · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
332
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install shikamaru-web-fetch
功能描述
Fetch a known URL and return the page as markdown, plain text, raw HTML, or a downloaded image file using the local fetch.js helper. Use this whenever the us...
使用说明 (SKILL.md)

Web Fetch

Use this skill when the target URL is already known and the job is retrieval, not search.

Common cases:

  • fetch a documentation page the user already linked
  • pull an article into readable markdown or plain text before summarizing it
  • inspect raw HTML to debug markup, metadata, or page structure
  • download a remote image to a local path for later inspection or processing

If the user needs help finding the right page first, use web-search before this skill.

Command

Run:

node ./fetch.js --url "https://example.com"

Optional flags:

  • --format markdown|text|html
  • --timeout \x3Cseconds>
  • --output \x3Cpath> for image responses

Choose the right format

Default to markdown unless the user clearly wants something else.

  • markdown: best for readable docs, articles, and summarization
  • text: best when the user wants the cleanest plain-text extraction
  • html: best when inspecting source markup, metadata, links, embeds, or page structure
  • --output \x3Cpath>: use when the response is an image and you want a stable saved file path instead of a temp file

Examples:

node ./fetch.js --url "https://example.com/docs" --format markdown
node ./fetch.js --url "https://example.com/page" --format text --timeout 20
node ./fetch.js --url "https://example.com/page" --format html
node ./fetch.js --url "https://example.com/logo.png" --output /tmp/logo.png

How to work with the result

The CLI prints a \x3Cweb_fetch> block.

For text-like responses it includes:

  • title
  • url
  • mime
  • format
  • content

For image responses it includes:

  • title
  • url
  • mime
  • image

After fetching:

  1. Read the returned fields carefully.
  2. Use only the parts relevant to the user's request.
  3. Summarize or quote concise excerpts instead of dumping the whole page unless the user asked for the full content.
  4. If you fetched HTML, explain notable structure or metadata rather than pasting large raw blobs unless needed.
  5. If you downloaded an image, tell the user the saved file path.

Behavior and limits

Keep these in mind while using the tool:

  • http:// URLs are tried as https:// first, then retried as plain HTTP if needed.
  • Default timeout is 30 seconds; maximum is 120 seconds.
  • Responses larger than 5MB are rejected.
  • Browser-like headers are used, with a retry path for some Cloudflare 403 challenge responses.
  • SVG is treated as text, not as a binary image attachment.

Failure handling

If the fetch fails:

  • verify the URL is complete and starts with http:// or https://
  • retry with a different format only if the user's goal changed
  • if the page is too large, blocked, or times out, tell the user plainly and suggest a narrower target URL or an alternate source
安全使用建议
This skill is internally consistent and implements a straightforward HTTP fetcher. Before using it: (1) be careful when specifying --output to avoid overwriting important files (it will write binary data to whatever path you provide); (2) only fetch URLs you trust — the tool will download content up to 5MB and save images to disk; (3) ensure your Node runtime supports global fetch and AbortSignal.timeout (modern Node 18+); and (4) if you need the agent to fetch pages from behind authentication, note the skill does not handle credentials. If any of these behaviors are unacceptable, do not enable the skill.
功能分析
Type: OpenClaw Skill Name: shikamaru-web-fetch Version: 1.0.0 The shikamaru-web-fetch skill is a standard utility for retrieving web content and converting it into markdown, plain text, or HTML. The fetch.js script uses native Node.js APIs to perform HTTP requests with reasonable safety constraints, such as a 5MB response size limit and a maximum 120-second timeout. While the script allows saving images to a user-specified path via the --output flag, this behavior is clearly documented in SKILL.md and aligns with the tool's stated purpose without evidence of malicious intent or obfuscation.
能力评估
Purpose & Capability
Name/description match the provided code and runtime instructions: the skill fetches a given URL and returns markdown/text/html or saves images. No unrelated credentials, binaries, or external services are requested.
Instruction Scope
SKILL.md restricts use to fetching known URLs and shows only the node ./fetch.js CLI; the instructions do not request extra env vars or read other system state. Note: the tool can write downloaded images to a user-supplied path (or a temp file) — choose the output path carefully to avoid overwriting local files.
Install Mechanism
No install spec or remote downloads are used. The bundled fetch.js is the only code; nothing is fetched from external installers or obscure URLs at install time.
Credentials
The skill requires no environment variables or credentials. It performs network requests only to the user-provided URL and writes image output only to a specified path or temp directory.
Persistence & Privilege
always is false and the skill does not request persistent or system-wide privileges. It does write image files to the filesystem when asked (tempdir by default), which is expected behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install shikamaru-web-fetch
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /shikamaru-web-fetch 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug shikamaru-web-fetch
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Web Fetch 是什么?

Fetch a known URL and return the page as markdown, plain text, raw HTML, or a downloaded image file using the local fetch.js helper. Use this whenever the us... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 332 次。

如何安装 Web Fetch?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install shikamaru-web-fetch」即可一键安装,无需额外配置。

Web Fetch 是免费的吗?

是的,Web Fetch 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Web Fetch 支持哪些平台?

Web Fetch 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Web Fetch?

由 shikamaru-cc(@shikamaru-cc)开发并维护,当前版本 v1.0.0。

💬 留言讨论