agent-browser
agent-browser is a fast, native Rust CLI for driving a real Chrome browser from an AI agent, using accessibility-tree snapshots and stable element references instead of fragile CSS selectors.
A snapshot command returns the page's accessibility tree with numbered references, and later commands click, fill or read an element by that reference; traditional CSS-selector and role-based commands are also supported for cases where that is more direct. It downloads and manages its own Chrome for Testing build, or detects an existing Chrome, Brave, Playwright or Puppeteer install, and its background daemon needs neither Playwright nor Node.js to operate.
A click fails early and names the specific element covering its target, such as a consent banner or modal, instead of silently clicking through it. An experimental WebMCP mode announces a page's available agent-callable tools automatically, with full schemas fetched only on request rather than sent proactively.
Rust, Apache-2.0 licensed.