browser_eval
Runs JavaScript in the target browser tab and returns the result, providing a fallback for tasks that dedicated browser tools cannot cover.
Instructions
Run JavaScript in the target tab and return the value. Powerful escape hatch; prefer the specific tools when they fit.
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_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |