execute_script
Execute JavaScript code in the browser via Selenium WebDriver to manipulate web pages, extract data, or trigger actions that are not possible with standard interactions.
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 |
|---|---|---|---|
| script | Yes | JavaScript code to execute |