Try the app
try_appRun the app in a private, offline browser and return what the script returns plus photos. The script is the body of an async function: read the page and return a value. Helpers: wait(ms), $(sel), $$(sel), click(sel), set(sel, value), log(...); like a player: await tap() (centre) or tap(x, y) or tap('#start'), await key('w', 1500) holds a key, await look(dx, dy) moves the mouse, await snap('label') takes a photo (up to 6). Up to 25 s. The frame is 1280x720 (phone: true for 844x390). Heavy 3D draws slowly here; check state with code too.
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": {
"project_id": "<project_id>",
"script": "<script>"
},
"name": "try_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | ||
| script | Yes | ||
| wait_ms | No | How long to let the app load first (default 1500). | |
| end_photo | No | Also photograph where the run ended. | |
| project_id | Yes | The project's id, from list_projects or create_project. |