wait_for_app
Pause execution until a specified Android app becomes the foreground activity on a device, with configurable timeout and polling interval.
Instructions
Wait until the requested Android package becomes the foreground app.
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": {
"device_id": "<device_id>",
"package_name": "<package_name>"
},
"name": "wait_for_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| interval | No | ||
| device_id | Yes | ||
| package_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |