sandbox_scene
Act inside the page the person has open at any of the box's URLs (sceneUrl or a web service's url): runs JavaScript there and returns the result. That page renders on their own phone or laptop, so it is not on the box's virtual display and sandbox_shot/takeover input cannot reach it — this can. Use it to drive the feature while they watch, or to read what they are looking at. Fails with a clear message when nobody has any of those pages open.
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": {
"id": "<id>",
"js": "<js>"
},
"name": "sandbox_scene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| js | Yes | JavaScript to run in the page the person has open (the most recently opened one if several are). The value of the last expression comes back (promises are awaited), so document.querySelector('#save').click() or location.pathname both work | |
| timeoutSec | No | How long to wait for the page to answer; default 15 |