execute_js
Execute arbitrary JavaScript in the browser to interact with pages, manipulate the DOM, and automate custom actions.
Instructions
Execute arbitrary JavaScript in the browser context
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": "execute_js"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | The JS code to execute |