browser_eval
Run JavaScript on the page (off by default)
How to use it
browser_eval is exposed by the Byob MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the browser_eval tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Byob
claude mcp add byob -s user -- /path/to/tsx /path/to/byob-mcp.tsOther tools in Byob (39)
Click a button or link
Read plain text from the system clipboard.
Close a tab by tabId
Download all images from a page
Drag the mouse from one point to another (linear interpolation).
Emulate mobile/tablet viewport / DPR / touch / UA.
Pull <table> elements as JSON
Snapshot console.log / warn / error
Export cookies for curl / scripts
Get raw HTML of an element or the whole page
Inspect an alert / confirm / prompt without resolving it.
Page Web Vitals + navigation timing.
Read localStorage / sessionStorage for an origin.
Go back one step in browser history
Go forward one step in browser history
Explicitly accept or dismiss a JavaScript dialog.
Search Chrome history with optional terms and date bounds.
Hover the mouse over an element to trigger tooltips/menus
Start a stateful request-interception session.
Stop a browserinterceptstart session and return hit stats.
List all open tabs
Open a URL in a new or existing tab
Create an empty or pre-navigated background tab.
Send a keyboard key (Enter, Escape, F5, ArrowDown, ...)
Save current page as PDF (default ~/.byob/pdfs/).
Open a page, scroll through, read all text
Same, returns clean markdown (no nav/ads)
Reload a tab and wait for it to finish loading.
Screenshot → saved to disk
Scroll to top/bottom, an element, or a Y coordinate
Choose an option in a native <select>
Write a cookie via chrome.cookies.set (CHIPS-aware).
Get a compact accessibility tree with reusable element references.
Start recording HTTP + WebSocket traffic
Stop recording, export JSON or HAR
Switch to a tab
Type into an input (optionally press Enter)
Upload local files to <input type="file">.
Wait for an element to appear