evaluate_javascript
Run custom JavaScript in the current browser page context to read or modify page state, trigger actions, and support dynamic web automation.
Instructions
Run JavaScript in page 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": "evaluate_javascript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | ||
| script | Yes |