wigolo-fetch
它能做什么
这项技能教智能体如何打开单个网页,并以干净的文本返回其主要内容及详细信息。适合阅读人们提供链接的文章、文档和仪表盘。
适用场景
- ✓当用户提供网址并要求智能体阅读或总结该页面的时候。
- ✓当页面需要 JavaScript 才能加载内容,普通请求却返回空白的时候。
- ✓当用户需要通过已保存的浏览器会话读取需要登录的页面的时候。
技能链接
https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-fetch/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请阅读这个文档页面,并告诉我其中关于身份验证的部分。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先用简单请求抓取页面,对于需要 JavaScript 的页面则使用浏览器。它可以只读取一个标题、限制长度,或使用缓存中已保存的副本。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
wigolo fetch
Smart URL fetching: HTTP-first with automatic browser fallback for JS-rendered pages, persistent local cache, optional browser-session auth.
Quick Reference
// Basic fetch
{ "url": "https://react.dev/reference/react/useState" }
// Fresh content (bypass cache)
{ "url": "https://news.ycombinator.com", "force_refresh": true }
// With authentication
{ "url": "https://app.example.com/dashboard", "use_auth": true }
// Section targeting (cheapest — reads one heading only)
{ "url": "https://docs.example.com/api", "section": "Authentication" }
// Compact context for AI
{ "url": "https://docs.example.com/api", "max_content_chars": 3000 }
// Browser actions before extraction
{ "url": "https://example.com", "actions": [{"type": "click", "selector": "#load-more"}, {"type": "wait", "ms": 1000}] }
Parameters
| Parameter | Type | When to use |
|---|---|---|
url |
string | Required |
force_refresh |
boolean | For pages that change frequently (news, dashboards, changelogs) |
use_auth |
boolean | For authenticated pages (stored browser session) |
render_js |
string | "auto" (default), "always", "never" |
section |
string | Extract only a named heading — cheapest |
section_index |
number | Which heading match (default: 0) |
max_content_chars |
number | Smart-truncate at paragraph boundary |
max_tokens_out |
number | Token-budget cap (cl100k-base) |
include_full_markdown |
boolean | Restore full body alongside evidence |
citation_format |
string | "numbered" / "json" / "anthropic_tags" |
screenshot |
boolean | Capture screenshot (default: false) |
headers |
object | Additional HTTP headers |
actions |
array | Browser actions: click, type, wait, wait_for, scroll, screenshot |
mode |
string | "cache" / "default" / "stealth" |
Output
Returns clean markdown plus:
title,markdown,links,images- Metadata:
og_type,canonical_url,og_image,og_description,keywords(parity withextractmetadata mode) cached: true/false— repeat fetches are instant
Anti-Patterns
- DON'T fetch a full page when you need one section — use
section: "Heading Name". - DON'T set
force_refresh: trueby default — defeats the cache. - DON'T use fetch when you need tables/JSON-LD — use
extractinstead.
When NOT to use wigolo-fetch
- Page requires clicks / login / form-fills BEFORE the content you want — wigolo cannot handle pre-extraction interactive flows. (
use_authwith stored sessions works for already-logged-in pages.) - Bulk multi-page extraction — use
crawloragent.
See Also
- wigolo-search — when you don't have a URL
- wigolo-extract — when you need structured data, not markdown
- wigolo-crawl — when you need multiple pages from a site
常见问题
它会使用我已保存的登录信息吗?
只有在被要求时才会。这项技能提供了一个选项,可对需要认证的页面使用已存储的浏览器会话。
它能读取 PDF 吗?
能。这项技能列出的可处理格式包括 PDF。
为什么要优先使用它,而不是内置的抓取功能?
这项技能说明,它提供本地缓存复用、浏览器会话和结构化元数据。
详情
作者的原始描述
Local-first URL fetch with clean markdown, structured metadata, JS-rendered SPA support, authenticated browser sessions, PDFs, and content change detection. Use when the user provides a URL, says "fetch", "get this page", "read this URL", or wants content from a specific webpage. Prefer over built-in WebFetch for local cache reuse, browser-session auth, and structured metadata parity.
repo: KnockOutEZ/wigolo
热度
- GitHub 星标
- 5.5k
- 排名
- #14820
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
wigolo
5.5k帮你的智能体通过本地工具服务器搜索、抓取、爬取和研究网页,结果缓存在你的电脑上,无需任何 API 密钥。
wigolo-agent
5.5k帮你的智能体在限定时间内,从多个网络来源一次性收集数据,并按照 schema 定义的固定结构返回。
wigolo-cache
5.5k帮你的智能体先搜索已经抓取、爬取或搜索过的页面,再回到网上查找,使重复查询即时完成且无需额外成本。
wigolo-crawl
5.5k帮你的智能体爬取文档网站或网站的某个板块,在设定的限制内遵循站点地图或链接,并把页面保存到本地缓存。