A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured co...
agent-browser open # Navigate to page
agent-browser snapshot -i # Get interactive elements with refs
agent-browser click @e1 # Click element by ref
agent-browser fill @e2 "text" # Fill input by ref
agent-browser close # Close browser
βοΈ Configuration
--session uses an isolated session.
--json provides JSON output.
--full takes a full page screenshot.
--headed shows the browser window.
--timeout sets the command timeout in milliseconds.
--cdp connects via Chrome DevTools Protocol.
π Tips & Best Practices
Refs are stable per page load but change on navigation.
Always snapshot after navigation to get new refs.
Use fill instead of type for input fields to ensure existing text is cleared.