Clawhub Publish 146198
Automate web browsing tasks like navigation, form filling, clicking, and data extraction using a fast Rust-based headless browser with Node.js fallback.
Latest: v0.2.0
Version 0.2.0 summary: Initial public release of Agent Browser, a CLI for headless browser automation.
- Automate navigation, interaction, and extraction tasks via structured CLI commands.
- Supports form filling, UI testing, and web scraping.
- Features interactive element snapshots with stable references.
- Provides flexible element interaction, waiting, and export (screenshot, PDF, video).
- Requires Node.js (≥18) and quick CLI install with npm.
duplicate of@gxw975/clawhub-publish-146156
Agent Browser
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 commands.
When to use
- Automating web interactions (login, form fill, scraping)
- Extracting structured data from pages
- Testing web UIs or workflows
- Filling forms programmatically
Prerequisites
- Node.js ≥ 18
npm install -g agent-browser(run once to install CLI)
How it works
agent-browser open <url>→ launch browser & navigateagent-browser snapshot -i→ get interactive elements with stable refs (e.g.,@e1)- Use refs to interact:
click @e1,fill @e2 "text",wait @e3 agent-browser close→ clean up
Key capabilities
- Snapshot with accessibility tree or interactive-only mode
- Precise element interaction (click/fill/hover/drag/upload)
- Wait conditions (element visible, URL change, network idle)
- Screenshot, PDF export, video recording
- Cookie/storage/network control
- Tab/window/frame management
- JSON output for programmatic parsing
Example
agent-browser open https://example.com/login
agent-browser snapshot -i
agent-browser fill @e1 "user@example.com"
agent-browser fill @e2 "password123"
agent-browser click @e3
agent-browser wait --url "/dashboard"
