browser_evaluate
Run JavaScript code in any browser tab and retrieve the evaluated output.
Instructions
Execute JavaScript in the context of a browser tab and return the result
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"expression": "<expression>"
},
"name": "browser_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab ID (defaults to active tab) | |
| expression | Yes | JavaScript expression to evaluate |