agent-browser
Skill1 starsChanged 3 months agoApache-2.0View on GitHub
浏览器自动化工具。用于需要与网页交互的场景:导航页面、填写表单、点击按钮、截图、提取动态加载的数据、测试 Web 应用等。当 web_fetch 无法获取完整内容时,使用此 skill。
189 other projects use a version of this.
Adopted by
Most recently taken up by
- chrysogonus/power-agentstheir own version, first seen Nov 8, 2026
- kinhluan/skillstheir own version, first seen Nov 8, 2026
- cafe3310/public-agent-skillstheir own version, first seen Nov 8, 2026
- kortix-ai/sunatheir own version, first seen Nov 8, 2026
- HeteroCat/heterocat-skillstheir own version, first seen Nov 8, 2026
- JuanMarchetto/agent-skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use time-skill, dep-refs and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Recepay6358Skilltime-skill
Display the current time in Pakistan Standard Time (PKT, UTC+5). Use when the user asks for the current time, Pakistan time, or PKT.
Also in 6 projects that use this
betacatslingSkilldep-refs
Use when needs to inspect TypeScript export references in the z-code workspace, list exports from a file, verify whether an export is unused before deletion, investigate who imports a symbol during refactors, or combine pnpm knip unused-export results with pnpm dep:refs symbol-level reference tracing.
Also in 5 projects that use this
betacatslingSkillfeature-boundary-planner
Map a ZCode behavior change to current UI surfaces, state owners, protocol commands, persistence, and validation. Use for impact analysis, product-boundary planning, or an implementation handoff grounded in the checked-out source.
Also in 5 projects that use this
nicepkgSkillcommunity-led-growth
Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.
Also in 5 projects that use this
nicepkgSkillph-community-outreach
Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.
Also in 5 projects that use this
Recepay6358Skillweather-svg-creator
Creates an SVG weather card showing the current temperature for Dubai. Writes the SVG to orchestration-workflow/weather.svg and updates orchestration-workflow/output.md.
Also in 6 projects that use this
- +3 more from nicepkg
Other versions189 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 189
- shanraisshan/claude-code-best-practice★ 69ksame name
- moeru-ai/airi★ 51ksame name
- vercel-labs/agent-browser★ 47ksame name
- activepieces/activepieces★ 25ksame name
- slopus/happy★ 25ksame name
- kortix-ai/suna★ 21ksame name
- kortix-ai/CompanyOS★ 21ksame name
- eosphoros-ai/DB-GPT★ 20ksame name
- documenso/documenso★ 16ksame name
- emdash-cms/emdash★ 14ksame name
179 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- background-task-runnerSkill
- officecli-docxSkill
- officecli-pptxSkill
- officecli-xlsxSkill
- rememberSkill
- role-publishSkill
- self-evolutionSkill
- skill-publishSkill
- swebench-correctorSkill
- swebench-recoverySkill
- swebench-reviewerSkill
- swebench-solverSkill
- vision-analysisSkill
- webcliSkill
The file
Files
Agent Browser
通过 execute_shell 运行 npx agent-browser <command> 来控制浏览器。
核心工作流
open <url> → snapshot -i → interact → re-snapshot → ...每次页面变化后必须重新 snapshot,因为 ref 编号会改变。
命令参考
导航
npx agent-browser open <url> # 打开页面
npx agent-browser back # 后退
npx agent-browser forward # 前进
npx agent-browser refresh # 刷新
npx agent-browser open <url> --new-tab # 新标签页打开
npx agent-browser tabs # 列出所有标签页
npx agent-browser switch-tab <index> # 切换标签页
npx agent-browser close-tab # 关闭当前标签页快照(Snapshot)
npx agent-browser snapshot # 获取页面快照(纯文本)
npx agent-browser snapshot -i # 获取带 ref 编号的交互式快照
npx agent-browser snapshot --html # 获取 HTML 快照-i 模式下,每个可交互元素会标注 [ref=N],后续命令用 ref 编号定位元素。
交互
npx agent-browser click <ref> # 点击元素
npx agent-browser type <ref> --text "内容" # 输入文本
npx agent-browser type <ref> --text "内容" --submit # 输入并提交
npx agent-browser select <ref> --value "选项值" # 选择下拉选项
npx agent-browser hover <ref> # 悬停
npx agent-browser scroll-down # 向下滚动
npx agent-browser scroll-up # 向上滚动
npx agent-browser scroll-down <ref> # 在元素内向下滚动键盘
npx agent-browser key Enter
npx agent-browser key Tab
npx agent-browser key Escape
npx agent-browser key "Control+a"等待
npx agent-browser wait <seconds> # 等待指定秒数
npx agent-browser wait-for-text "文本内容" # 等待文本出现截图与文件
npx agent-browser screenshot # 截图(输出路径)
npx agent-browser screenshot --path ./shot.png # 截图到指定路径
npx agent-browser pdf --path ./page.pdf # 保存为 PDFJavaScript 执行
使用 --stdin heredoc 避免 shell 转义问题:
npx agent-browser eval --stdin <<'JS'
document.querySelectorAll('table tr').forEach(row => {
console.log(Array.from(row.cells).map(c => c.textContent.trim()).join(' | '));
});
JS语义定位器(find)
当 ref 编号不可靠时,使用语义定位:
npx agent-browser find text "登录" # 按文本查找
npx agent-browser find label "用户名" # 按 label 查找
npx agent-browser find role "button" # 按 ARIA role 查找
npx agent-browser find placeholder "请输入..." # 按 placeholder 查找find 返回 ref 编号,可直接用于后续交互命令。
Session 持久化
npx agent-browser open <url> --session my-session # 使用命名 session同一 session 名会复用浏览器上下文(cookies、登录状态等)。
常用模式
表单填写
npx agent-browser open "https://example.com/form"
npx agent-browser snapshot -i
npx agent-browser type 3 --text "张三"
npx agent-browser type 5 --text "zhangsan@example.com"
npx agent-browser select 7 --value "option2"
npx agent-browser click 10
npx agent-browser snapshot -i # 确认提交结果数据提取
npx agent-browser open "https://example.com/data"
npx agent-browser wait-for-text "加载完成"
npx agent-browser eval --stdin <<'JS'
JSON.stringify(
Array.from(document.querySelectorAll('.item')).map(el => ({
title: el.querySelector('h3')?.textContent?.trim(),
price: el.querySelector('.price')?.textContent?.trim(),
}))
);
JS需要登录的页面
npx agent-browser open "https://example.com/login" --session my-app
npx agent-browser snapshot -i
npx agent-browser type 2 --text "username"
npx agent-browser type 4 --text "password"
npx agent-browser click 6
npx agent-browser wait-for-text "欢迎"
# 后续请求继续使用 --session my-app 保持登录状态
npx agent-browser open "https://example.com/dashboard" --session my-app重要提示
- 每次页面导航或交互后,必须重新
snapshot -i获取新的 ref 编号 - ref 编号在页面变化后会失效,不要缓存或复用旧的 ref
- 对于简单的静态页面抓取,优先使用
web_fetch工具,更快更轻量 - 如果页面需要 JavaScript 渲染才能显示内容,才需要使用此 skill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

