app_state
Check if an Android package or iOS bundle id is installed, running, or foreground on a device to inform automation decisions.
Instructions
Check whether an Android package or iOS bundle id is installed, running, or 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": {
"device": "<device>",
"package": "<package>"
},
"name": "app_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| package | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |