提示词.com

浏览器自动化

GitHub vercel-labs/agent-browser ★ 43.1k Apache-2.0

让 Claude 操控 Chrome:打开网页、点击填表、截图、抓数据。

复制这句话,粘给 Claude Code

帮我用 https://github.com/vercel-labs/agent-browser 安装 agent-browser skill,然后打开我本地的网站把注册流程走一遍并截图

它会按这个仓库把 skill 装好,然后直接开始干活。把后半句换成你自己的任务即可。

想手动安装?
/plugin marketplace add vercel-labs/agent-browser
/plugin install agent-browser@agent-browser

它能帮你做什么

  • 操控网页:打开网址、点按钮、填表单、截图、提取页面数据,按页面元素编号操作,点得比较准
  • 测试和找 bug:对你的网站做探索式测试,走一遍流程,帮你找问题
  • 复用登录状态:可以沿用你 Chrome 里已登录的会话,也能保存登录状态下次接着用
  • 操作桌面应用:还支持 VS Code、Slack、Notion 这类 Electron 应用

还可以这样说

  • 帮我打开这个招聘网站,把前 3 页的职位名称和薪资整理成表格
  • 帮我把自己网站每个菜单都点一遍,看有没有打不开的页面,顺便截图
  • 帮我登录后台,把这 20 条商品信息挨个填进表单里

使用前须知

  • 先安装命令行工具:npm i -g agent-browser,再运行 agent-browser install 下载 Chrome(Linux 缺系统依赖时用 agent-browser install --with-deps
  • 这个 SKILL.md 只是入口,具体用法由命令行按已安装的版本提供,没装命令行工具时这个 skill 用不了
查看 SKILL.md 原文

agent-browser

Fast browser automation CLI for AI agents. Chrome/Chromium via CDP with accessibility-tree snapshots and compact @eN element refs.

Install: npm i -g agent-browser && agent-browser install

Start here

This file is a discovery stub, not the usage guide. Before running any agent-browser command, load the actual workflow content from the CLI:

agent-browser skills get core             # start here — workflows, common patterns, troubleshooting
agent-browser skills get core --full      # include full command reference and templates

The CLI serves skill content that always matches the installed version, so instructions never go stale. The content in this stub cannot change between releases, which is why it just points at skills get core.

Specialized skills

Load a specialized skill when the task falls outside browser web pages:

agent-browser skills get electron          # Electron desktop apps (VS Code, Slack, Discord, Figma, ...)
agent-browser skills get slack             # Slack workspace automation
agent-browser skills get dogfood           # Exploratory testing / QA / bug hunts
agent-browser skills get derive-client     # Record a HAR, derive a standalone API client for a site
agent-browser skills get vercel-sandbox    # agent-browser inside Vercel Sandbox microVMs
agent-browser skills get protected-vercel-deployments  # Access protected Vercel deployments
agent-browser skills get agentcore         # AWS Bedrock AgentCore cloud browsers

Run agent-browser skills list to see everything available on the installed version.

Why agent-browser

  • Fast native Rust CLI, not a Node.js wrapper
  • Works with any AI agent (Cursor, Claude Code, Codex, Continue, Windsurf, etc.)
  • Chrome/Chromium via CDP with no Playwright or Puppeteer dependency
  • Accessibility-tree snapshots with element refs for reliable interaction
  • Sessions, authentication vault, state persistence, video recording
  • Specialized skills for Electron apps, Slack, exploratory testing, cloud providers

Observability Dashboard

The dashboard runs independently of browser sessions on port 4848 and can also be opened through a proxied or forwarded URL such as https://dashboard.agent-browser.localhost. Agents should stay on the dashboard origin: session tabs, status, and stream traffic are proxied internally, so session ports do not need to be exposed.

自动化 浏览器自动化测试爬虫