browser_eval
Execute JavaScript in a browser session to automate tasks, extract data, or manipulate page content.
Instructions
Execute JavaScript
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_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | JavaScript to execute | |
| session | No | Session name |