| name | browser-tools |
| description | Interactive browser automation via Chrome DevTools Protocol using Brave. Use when you need to interact with web pages, test frontends, or when user interaction with a visible browser is required. |
Browser Tools
Chrome DevTools Protocol tools for agent-assisted web automation. These tools connect to Brave running on :9222 with remote debugging enabled.
Setup
Run once before first use:
cd {baseDir}/browser-tools
npm install
Start Brave
{baseDir}/browser-start.js
{baseDir}/browser-start.js --profile
Launch Brave with remote debugging on :9222. Use --profile to preserve user's authentication state.
Navigate
{baseDir}/browser-nav.js https://example.com
{baseDir}/browser-nav.js https://example.com --new
Navigate to URLs. Use --new flag to open in a new tab instead of reusing current tab.
Evaluate JavaScript
{baseDir}/browser-eval.js 'document.title'
{baseDir}/browser-eval.js 'document.querySelectorAll("a").length'
Execute JavaScript in the active tab. Code runs in async context. Use this to extract data, inspect page state, or perform DOM operations programmatically.
Screenshot
{baseDir}/browser-screenshot.js
Capture current viewport and return temporary file path. Use this to visually inspect page state or verify UI changes.
Pick Elements