Execute Page Action
execute_page_actionExecutes custom JavaScript in a live browser page to simulate clicks, scrolling, or input, triggering the requests required for page interactions and structured data retrieval.
Instructions
Auxiliary action: allows executing specified JS in the page (simulate click/scroll/input, etc.) to trigger requests.
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": {
"js_script": "<js_script>"
},
"name": "execute_page_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js_script | Yes | JavaScript code to execute in the page |