vercel-labs-agent-browser
πͺMarketplaceBrowser automation CLI for AI agents
Add this Marketplace
/plugin marketplace add vercel-labs/agent-browserThen open /plugin in Claude Code to pick and install its plugins.
About this marketplace
Overview
Agent Browser is a headless browser automation CLI designed specifically for AI agents. Built with a fast Rust core and a Node.js fallback, it provides a comprehensive set of commands for navigating, clicking, filling forms, taking screenshots, and extracting data from web pages. Its accessibility-tree-based snapshot system with element refs makes it particularly well-suited for AI-driven browser interactions.
Key Features
- Accessibility tree snapshots, The
snapshotcommand returns a structured accessibility tree with element refs, enabling AI agents to interact with page elements by reference rather than fragile CSS selectors. - Comprehensive browser commands, Supports clicking, typing, filling, scrolling, drag-and-drop, file uploads, screenshots, PDF export, and JavaScript evaluation all from the command line.
- Dual selector support, Works with both ref-based selectors from snapshots (e.g.,
@e2) and traditional CSS selectors (e.g.,#submit), giving flexibility in how elements are targeted. - Session and tab management, Supports multiple pages, persistent sessions via
--profile, and CDP connections, allowing complex multi-page workflows. - Fast Rust CLI, Ships with a native Rust binary for performance, with automatic fallback to Node.js if needed.
Who is this for?
Agent Browser is built for developers and AI engineers who need reliable, programmatic browser automation for AI agent workflows. It is especially useful for teams building autonomous agents that need to interact with web applications, run end-to-end tests, or scrape structured data from websites.
Summarized by AI from this repo's README. Suggest a better one
Plugins in this Marketplace1
README.md
View on GitHub βagent-browser
Headless browser automation CLI for AI agents. Fast Rust CLI with Node.js fallback.
Installation
npm (recommended)
npm install -g agent-browser
agent-browser install # Download Chromium
From Source
git clone https://github.com/vercel-labs/agent-browser
cd agent-browser
pnpm install
pnpm build
pnpm build:native # Requires Rust (https://rustup.rs)
pnpm link --global # Makes agent-browser available globally
agent-browser install
Linux Dependencies
On Linux, install system dependencies:
agent-browser install --with-deps
# or manually: npx playwright install-deps chromium
Quick Start
agent-browser open example.com
agent-browser snapshot # Get accessibility tree with refs
agent-browser click @e2 # Click by ref from snapshot
agent-browser fill @e3 "test@example.com" # Fill by ref
agent-browser get text @e1 # Get text by ref
agent-browser screenshot page.png
agent-browser close
Traditional Selectors (also supported)
agent-browser click "#submit"
agent-browser fill "#email" "test@example.com"
agent-browser find role button click --name "Submit"
Commands
Core Commands
agent-browser open <url> # Navigate to URL (aliases: goto, navigate)
agent-browser click <sel> # Click element
agent-browser dblclick <sel> # Double-click element
agent-browser focus <sel> # Focus element
agent-browser type <sel> <text> # Type into element
agent-browser fill <sel> <text> # Clear and fill
agent-browser press <key> # Press key (Enter, Tab, Control+a) (alias: key)
agent-browser keydown <key> # Hold key down
agent-browser keyup <key> # Release key
agent-browser hover <sel> # Hover element
agent-browser select <sel> <val> # Select dropdown option
agent-browser check <sel> # Check checkbox
agent-browser uncheck <sel> # Uncheck checkbox
agent-browser scroll <dir> [px] # Scroll (up/down/left/right)
agent-browser scrollintoview <sel> # Scroll element into view (alias: scrollinto)
agent-browser drag <src> <tgt> # Drag and drop
agent-browser upload <sel> <files> # Upload files
agent-browser screenshot [path] # Take screenshot (--full for full page, saves to a temporary directory if no path)
agent-browser pdf <path> # Save as PDF
agent-browser snapshot # Accessibility tree with refs (best for AI)
agent-browser eval <js> # Run JavaScript
agent-browser connect <port> # Connect to browser via CDP
agent-browser close # Close browser (aliases: quit, exit)
Get Info
agent-browser get text <sel> # Get text content
agent-browser get html <sel> # Get innerHTML
agent-browser get value <sel> # Get input value
agent-browser get attr <sel> <attr> # Get attribute
agent-browser get title # Get page title
agent-browser get url # Get current URL
agent-browser get count <sel> # Count matching elements
agent-browser get box <sel> # Get bounding box
Check State
agent-browser is visible <sel> # Check if visible
agent-browser is enabled <sel> # Check if enabled
agent-browser is checked <sel> # Check if checked
Find Elements (Semantic Locators)
agent-browser find role <role> <action> [value] # By ARIA role
agent-browser find text <text> <action> # By text content
agent-browser find label <label> <action> [value] # By label
agent-browser find placeholder <ph> <action> [value] # By placeholder
agent-browser find alt <text> <action> # By alt text
agent-browser find title <text> <action> # By title attr
agent-browser find testid <id> <action> [value] # By data-testid
agent-browser find f
More from this repository9
A command-line tool that lets your AI agent control a Chrome browser. It can open pages, fill forms, click buttons, take screenshots and collect data from websites for you.
Systematically explores and tests web applications to find bugs, UX issues, and other problems.
Skill for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Connects to running Electron apps and controls them programmatically.
Lets an AI agent use Slack through a browser it controls with agent-browser. It can check unread messages, open channels, search conversations, send messages and take screenshots.
Shows how to run a Chrome browser inside short-lived virtual machines on Vercel, so an app hosted there can control web pages. You can open sites, take screenshots and read page structure, then the machine shuts down.
A concise, practical guide for creating specialized skills that extend Claude's capabilities with domain-specific knowledge and workflows.
Lets agent-browser, a tool that controls a web browser for your AI, run that browser in Amazon's AWS cloud. Commands work the same as on your own computer. It uses your existing AWS sign-in and can keep logins between sessions.
A basic guide to agent-browser, a command-line tool that lets an AI agent control a Chrome browser. It covers opening pages, clicking, filling forms, pulling out text, taking screenshots and logging in to sites.
Skill