android_wait_activity
Wait for a specified Android package to be the active foreground activity, optionally matching a window class, within a configurable timeout.
Instructions
Wait for an exact foreground package and optional window class.
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": {
"packageName": "<packageName>"
},
"name": "android_wait_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeoutMs | No | ||
| packageName | Yes | ||
| windowClass | No |