| name | agent-browser |
| description | Expert on browser automation with AI agents using Vercel's agent-browser CLI. Use when the user wants to automate browsers, scrape websites, capture screenshots, or build AI-powered web workflows. Triggers on mentions of agent-browser, browser automation, headless browsing, web scraping with AI. |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash, WebFetch |
Agent Browser Skill
Expert at browser automation for AI agents using Vercel's agent-browser CLI.
Overview
agent-browser is a headless browser automation CLI optimized for AI agents with:
- 50+ commands for navigation, forms, screenshots, network, and storage
- AI-optimized snapshots with element refs for deterministic selection
- Multi-session support for isolated browser instances
- Cross-platform native Rust CLI with Node.js fallback
Quick Start
npm install -g agent-browser
agent-browser install
agent-browser open example.com
agent-browser snapshot -i
agent-browser click @e2
agent-browser fill @e3 "text"
agent-browser screenshot page.png
agent-browser close
Core Concepts
Refs (Recommended for AI)
Element references from snapshots provide deterministic selection:
agent-browser snapshot
agent-browser click @e2
Sessions
Isolated browser instances with independent state:
agent-browser --session agent1 open site.com
agent-browser --session agent2 open other.com
Documentation
For detailed information, see the reference documentation:
Common Workflows
Login Flow
agent-browser open https://example.com/login
agent-browser snapshot -i
agent-browser fill @e1 "user@example.com"
agent-browser fill @e2 "password"
agent-browser click @e3
agent-browser wait navigation
Data Extraction
agent-browser open https://example.com/data
agent-browser snapshot --json > data.json
agent-browser get text ".product-title"
Screenshot Capture
agent-browser screenshot viewport.png
agent-browser screenshot full.png --full
Upstream Sources
Sync & Update
When user runs sync: fetch latest from upstream sources, update docs/ files.
When user runs diff: compare current vs upstream, report changes.