agent-browser (Vercel Labs)
Everyday Browser automation CLI for AI agents — snapshots, clicks by ref, screenshots.Source of truth
Repo: github.com/vercel-labs/agent-browser
Site: agent-browser.dev
Why use it here
| Tool | Role |
|---|---|
| Chrome DevTools MCP | Live debug in your Chrome (can hit profile locks) |
| Playwright scripts | Scripted regression / polish scripts |
| agent-browser | Agent-native loop: open → snapshot @eN → act → screenshot |
Compact text output keeps agent context smaller than full DOM dumps.
Install
bash
npm install -g agent-browser
agent-browser install # Chrome for Testing (first time)
agent-browser --versionQuick loop (Helpers polish example)
bash
agent-browser open http://127.0.0.1:5173/git/starter
agent-browser set media light
agent-browser snapshot -i
agent-browser screenshot .apsolut/08-screenshots/polish/git-starter.png
agent-browser set media dark
agent-browser screenshot .apsolut/08-screenshots/polish/git-starter-dark.png
agent-browser closeAnnotated refs for multimodal models:
bash
agent-browser screenshot --annotate ./page.png
agent-browser click @e2Skills / MCP
bash
agent-browser skills get core --full
# MCP (stdio)
agent-browser mcp