Browser Evaluate
browser_evaluateExecute JavaScript expressions in an active browser page and retrieve evaluated results, enabling direct DOM inspection, network requests, and script execution for advanced automation.
Instructions
Evaluate JavaScript in the page and return the result.
Prefer a function expression: "() => document.title" or "(x) => fetch(x).then(r => r.status)" with arg passed as parameter. Everything the page can do is allowed — this is raw power, use responsibly.
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 |
|---|---|---|---|
| arg | No | ||
| tab | No | ||
| session | No | default | |
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |