Browser Tool

Headless Chrome automation for web browsing, form filling, and screenshots. Requires the browser feature.

Feature Flag
Build with cargo build --release --features browser to enable this tool.

Configuration

config.toml
[browser]
enabled = true
headless = true
screenshot_width = 1280
screenshot_height = 720
user_data_dir = "~/Library/Application Support/Google/Chrome"
profile = "Default"

Methods

MethodParametersDescription
navigateurlNavigate to URL, wait 2s for load
screenshotselector?PNG screenshot of page or element
clickselectorClick a page element
fillselector, valueFill an input field
get_textselector?Extract text content
get_attributeselector, attrRead an HTML attribute
wait_for_selectorselector, timeout_msPoll until element appears

Chrome Profile Reuse

Setting user_data_dir and profile lets the browser inherit an existing Chrome session — cookies, login state, and extensions. This allows the agent to interact with authenticated sites.

Screenshots

Screenshots are captured as PNG and sent to the user via Telegram as photo messages with captions describing the page content.