Overview
The browser tool supports:- Page navigation and content extraction
- JavaScript rendering (optional)
- Screenshot capture
- Form interaction
- Multiple backend modes
Backends
- Native (Fantoccini)
- HTTP (Default)
Uses Rust-native browser automation with WebDriver protocol.Requirements:
- ChromeDriver or GeckoDriver running locally
- Enable with
--features browser-native
- Full JavaScript support
- Screenshot capture
- Element interaction
- Cookie management
Parameters
URL to navigate to. Must use http:// or https://
Action to perform:
navigate, screenshot, click, typeCSS selector for element interaction (click/type actions)
Text to type (for type action)
Examples
Navigate and Extract
Take Screenshot
Fill Form
Response
Page content (text or base64-encoded screenshot)
Page title
Final URL after redirects
Configuration
Security
- Domain allowlist enforcement
- HTTPS preference
- Request timeout (30 seconds)
- Content size limits (5MB)
- User agent identification
Setup
Native Backend
Source Code
Implementation:src/tools/browser.rs