browser_evaluate
Execute JavaScript in the browser to extract complex data or perform custom operations, returning the result directly.
Instructions
Execute JavaScript in the browser and return the result. Useful for complex extractions.
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": {
"script": "<script>"
},
"name": "browser_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | JavaScript code to execute. Use return to get a value. |