browser_execute_script
Execute JavaScript in the browser page context to return script results and immediate consequences such as DOM changes, layout shifts, and network activity.
Instructions
Execute JavaScript in the browser page context. Returns the script result and action consequences.
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_execute_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | JavaScript code to execute in the page context |