Run JavaScript
browser_evaluateEvaluate a JavaScript expression in the page and return its JSON value. Promises are awaited on Windows and macOS.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab number from browser_tabs. Defaults to this MCP session's selected tab. An explicit tab updates that selection. A closed selection produces an error; select or open a tab to recover. | |
| expression | Yes |