browser_execute_script
Run JavaScript in page context
How to use it
Project documentation lists browser_execute_script for the Browser MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install Browser MCP
npx @agent360/browser-mcp installOther tools in Browser MCP (33)
Show overlay dialog for 2FA, CAPTCHA, credentials, or any user input
Click via CSS or text selector (text=Submit, button:text(Next))
Close tab (session-owned only)
Capture console.log/warn/error messages from page
Bulk-dismiss popups/modals/tooltips/banners via aria-label/text/×-char heuristics. noncritical mode preserves dialogs with form data
Upload via drop-zones: finds hidden <input type="file"> in target subtree/parent (up to 2 levels). Use when browseruploadfile fails because the zone has no visible input
Navigate to provider dashboard + extract API token
HTTP request from extension (bypasses CORS)
Fill input fields (works on CSP-strict sites)
Get cookies for domain
Read localStorage
Get most recently opened tab (OAuth popups)
Get page text or HTML
Accept/dismiss native alert/confirm/prompt dialogs
Hover for tooltips/dropdowns
List iframes on page
List session's tabs only
Navigate to URL (reuses tab, or newtab=true)
Keyboard events (Enter, Tab, Escape, modifiers)
Screenshot via Chrome Debugger (works even when tab isn't focused)
Scroll to element or by pixels
Execute JS in specific iframe
Native <select> + custom dropdowns (Angular Material, React Select)
Autocomplete/combobox: type query → wait for filtered listbox → click option (multi-value chip support). Use when browserselectoption fails on lazy-rendered options
Set cookies for a domain
Robust date inputs: tries native value-set → masked typing → calendar-picker navigation (MUI/AntD/react-datepicker/Lexical). Use when browserfill fails on date fields
Write localStorage values
Detect and solve CAPTCHAs. Auto-detects reCAPTCHA v2/v3, hCaptcha, Turnstile, FunCaptcha. Actions: detect, clickcheckbox (auto-click, often passes when signed into Google), clickgrid (AI vision guided), askhuman (fallback)
Switch to tab by ID
Upload files to <input type="file"> via Chrome Debugger API (no dialog)
Wait for element to appear
Wait for specific API call to complete