browse_evaluate
Run JavaScript in the current page and return its result — powerful: extract complex data or drive JS widgets the @eN/CSS verbs can't. Runs in the page's sandbox (not the host); navigation stays SSRF-guarded.
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": {
"browser_id": "<browser_id>",
"js": "<js>"
},
"name": "browse_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js | Yes | JavaScript expression/IIFE to evaluate in the page | |
| browser_id | Yes | from browse_open |