Wait For App
wait_for_appPause execution until the specified app is in the foreground, so the next action targets the intended UI.
Instructions
Wait until app_id is in the foreground.
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": {
"app_id": "<app_id>"
},
"name": "wait_for_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poll | No | ||
| app_id | Yes | ||
| device | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |