Execute Script
execute_scriptRuns an async JavaScript function body in the selected active component sandbox and returns bounded JSON. Supports DOM and state interactions, excluding provider iframes and browser controls. Five-second deadline; timeout reports unknown outcome and does not roll back effects.
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": {
"operationID": "<operationID>",
"expectedRevision": "<expectedRevision>",
"componentID": "<componentID>",
"script": "<script>",
"controlToken": "<controlToken>"
},
"name": "execute_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| componentID | Yes | ||
| operationID | Yes | ||
| controlToken | Yes | ||
| expectedRevision | Yes |