app_current
Retrieve the foreground Android app package name and activity to identify what is currently displayed on a connected device.
Instructions
Get the currently foregrounded app package name and activity.
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": "app_current"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity | Yes | Foreground activity name, if resolvable | |
| packageName | Yes | Package name of the foreground app |