Evaluate JavaScript
browser_evaluateRun a JavaScript expression in an isolated browser session and get the JSON-serialized result. Enables safe, concurrent evaluation across multiple agents.
Instructions
Run a JavaScript expression in the page and return the JSON-serialized 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": {
"sessionId": "<sessionId>",
"script": "<script>"
},
"name": "browser_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| sessionId | Yes | Id of the isolated browser session |