Headless browser automation CLI for AI agents using accessibility tree snapshots and ref-based element selection.
npx clawhub@latest install agent-browser-clawdbotAgent Browser is a headless browser automation CLI built specifically for AI agents. Instead of relying on pixel coordinates or CSS selectors, it exposes an accessibility tree snapshot with stable @ref identifiers, making element interactions deterministic and reliable. It supports multi-step workflows, isolated browser sessions, network mocking, state persistence, and a full range of page interactions — all via a clean JSON-friendly CLI.
npx clawhub@latest install agent-browser-clawdbotClick the Install button at the top of this page for one-click setup
Instead of fragile CSS selectors or coordinates, agent-browser captures the accessibility tree and assigns stable @ref IDs (e.g., @e2) to each element. AI agents parse these refs from JSON output and use them for all subsequent interactions, ensuring reliable targeting even across dynamic page updates.
Supports click, fill, type, hover, check/uncheck, select, drag, scroll, press, and more — all ref-driven. Also provides get and is commands to extract text, HTML, attributes, and check visibility or enabled state.
Run multiple named sessions simultaneously with --session <name>. Each session maintains its own browser context, enabling scenarios like testing admin and user roles side-by-side without cookie or state bleed.
Save cookies and local storage to a JSON file with state save, then reload it later with state load to skip login flows entirely — ideal for repeated automation runs.
Block unwanted requests (e.g., ads), mock API responses, and inspect network activity — all from the CLI. Useful for testing and scraping without external interference.
Wait for elements, text content, URL patterns, network idle, or arbitrary JavaScript conditions. Ensures stable snapshots before the agent proceeds to the next step.
An AI agent navigates to a search engine, fills in a query using a ref-identified input, waits for results, then extracts text and links from result elements — all without screenshots or manual selector tuning.
Two simultaneous sessions — one authenticated as admin, one as a regular user — interact with the same app concurrently. Each session loads its own saved auth state, enabling parallel workflow validation.
An agent logs in once, saves the session state to auth.json, and on subsequent runs loads that state to skip login — then proceeds directly to filling and submitting forms.
For complex React or Vue apps, the agent re-snapshots after every navigation or state change, always working from a fresh accessibility tree to ensure refs are current before interacting.
npx clawhub@latest install agent-browser-clawdbotLog in to write a review
No reviews yet. Be the first to share your experience!