Get Android app state
android_get_app_stateRetrieve the foreground app package and activity, process state, and display information from an Android device.
Instructions
Get the foreground package/activity, optional package process state, and display metadata.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "android_get_app_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | ADB device serial. Required when multiple devices are connected. | |
| package | No | Android package name |