executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
rust-browser-pilot基于 Rust 的高性能浏览器自动化工具,通过 Chrome DevTools 协议直接驱动浏览器,执行 DOM 提取、页面截图、表单填写、会话管理和站点地图分析等操作。启动速度和内存效率远超 Puppeteer 与 Selenium,非常适合网页抓取、自动化测试和需要复杂交互的场景。当用户需要自动化浏览器任务、提及网页抓取、自动化测试、DOM 提取、页面截图、表单填写、会话管理、站点地图分析,或比较 Puppeteer/Selenium 性能时触发。
Independent GitHub snapshot · Automated classification · Original documentation governs
name: rust-browser-pilot displayName: 极速浏览器自动化 emoji: "⚡" summary: 基于 Rust 的浏览器自动化工具,DOM 处理速度是 Puppeteer 的 10 倍。 homepage: https://github.com/rknoche6/fast-browser-use primaryEnv: bash os:
基于 Rust 的浏览器自动化引擎,提供一个轻量级二进制程序,通过 CDP 直接驱动 Chrome。专为高效的 DOM 提取、稳健的会话管理和极致速度而优化。
模拟鼠标抖动和随机延迟,抓取受保护的站点。
fast-browser-use navigate --url "https://protected-site.com" \
--human-emulation \
--wait-for-selector "#content"
捕获完整的 DOM 状态和计算样式,以便后续完美还原。
fast-browser-use snapshot --include-styles --output state.json
手动登录一次,然后将会话保存下来,用于后续的无头自动化。
步骤一:打开有界面的浏览器手动登录
fast-browser-use login --url "https://github.com/login" --save-session ./auth.json
步骤二:后续复用会话
fast-browser-use navigate --url "https://github.com/dashboard" --load-session ./auth.json
从无限滚动页面提取最新数据 —— 非常适合采集最新帖子、新闻或社交动态。
# Harvest headlines from Hacker News (scrolls 3x, waits 800ms between)
fast-browser-use harvest \
--url "https://news.ycombinator.com" \
--selector ".titleline a" \
--scrolls 3 \
--delay 800 \
--output headlines.json
实际输出(约 6 秒内获取 59 条不重复结果):
[
"Genode OS is a tool kit for building highly secure special-purpose OS",
"Mobile carriers can get your GPS location",
"Students using \"humanizer\" programs to beat accusations of cheating with AI",
"Finland to end \"uncontrolled human experiment\" with ban on youth social media",
...
]
适用于所有无限滚动页面:Reddit、Twitter、LinkedIn 动态流、搜索结果等。
将任意页面截图保存为 PNG:
fast-browser-use screenshot \
--url "https://example.com" \
--output page.png \
--full-page # Optional: capture entire scrollable page
通过解析站点地图和分析页面结构,了解网站的整体组织方式。
# Basic sitemap discovery (checks robots.txt + common sitemap URLs)
fast-browser-use sitemap --url "https://example.com"
# Full analysis with page structure (headings, nav, sections)
fast-browser-use sitemap \
--url "https://example.com" \
--analyze-structure \
--max-pages 10 \
--max-sitemaps 5 \
--output site-structure.json
参数说明:
--analyze-structure:同时提取页面结构(标题、导航、区块、元信息)--max-pages N:限制结构分析的页面数(默认:5)--max-sitemaps N:限制解析的站点地图数(默认:10,适用于大型站点)示例输出:
{
"base_url": "https://example.com",
"robots_txt": "User-agent: *\nSitemap: https://example.com/sitemap.xml",
"sitemaps": ["https://example.com/sitemap.xml"],
"pages": [
"https://example.com/about",
"https://example.com/products",
"https://example.com/contact"
],
"page_structures": [
{
"url": "https://example.com",
"title": "Example - Home",
"headings": [
{"level": 1, "text": "Welcome to Example"},
{"level": 2, "text": "Our Services"}
],
"nav_links": [
{"text": "About", "href": "/about"},
{"text": "Products", "href": "/products"}
],
"sections": [
{"tag": "main", "id": "content", "role": "main"},
{"tag": "footer", "id": "footer", "role": null}
],
"main_content": {"tag": "main", "id": "content", "word_count": 450},
"meta": {
"description": "Example company homepage",
"canonical": "https://example.com/"
}
}
]
}
利用此功能可以在抓取前了解站点架构、梳理导航流程或审计 SEO 结构。
| 特性 | Fast Browser Use (Rust) | Puppeteer (Node) | Selenium (Java) |
|---|---|---|---|
| 启动时间 | < 50ms | ~800ms | ~2500ms |
| 内存占用 | 15 MB | 100 MB+ | 200 MB+ |
| DOM 提取 | 零拷贝 | JSON 序列化 | 慢速桥接 |
本 skill 专为需要维护状态(如保持登录)、处理动态 JavaScript 内容或同时管理多个页面的复杂网页交互场景而设计。相比标准的 fetch 工具,它提供更高的性能和更精细的控制。