Agent Browser
by thesethrose
Browser & AutomationBrief
A fast Rust-based headless browser automation CLI.
Description
What This Skill Does
A headless browser automation CLI that lets AI agents control web pages through structured commands. It navigates URLs, clicks elements, fills forms, and extracts data using ref-based targets from accessibility snapshots. Built in Rust with a Node.js fallback.
Accessibility-tree refs from snapshots replace CSS selectors or XPath, making element targeting more resilient to layout and class changes.
When to Use It
- Automating login flows with reusable saved session state
- Filling and submitting multi-step web forms programmatically
- Extracting text or attributes from dynamic page content
- Recording video demos of web app workflows
- Running parallel browser sessions for multi-site testing
Example Workflow
User asks: Submit the contact form at https://example.com/form with my email and message
- 1
Run
agent-browser open https://example.com/formto navigate to the page - 2
Run
agent-browser snapshot -ito get interactive element refs - 3
Run
agent-browser fill @e1 "user@example.com"to fill the email field - 4
Run
agent-browser fill @e2 "Hello, I'd like more info"to fill the message field - 5
Run
agent-browser click @e3to submit, thenagent-browser wait --load networkidleto confirm
Form submitted; agent snapshots the result page to confirm the success message
Installation
clawhub install thesethrose/agent-browserRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.