browser_evaluate
Execute JavaScript code within a browser context to automate interactions, extract data, or manipulate web page elements programmatically.
Instructions
Execute JavaScript in the browser context (see browser_docs)
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": {
"code": "<code>"
},
"name": "browser_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript code to execute |