execute_script
Run custom JavaScript in the browser with optional arguments. Use this command to interact with page elements or modify behavior when standard Selenium actions fall short.
Instructions
Execute JavaScript in the browser.
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_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| script | Yes |