Get current foreground activity
android.activity.currentRetrieve the currently focused Android app's activity and package name to identify which application is running in the foreground on a connected device.
Instructions
Retrieves the currently focused/resumed activity and package name. Useful for determining which app is in the foreground. Returns package name and activity name.
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": {
"serial": "<serial>"
},
"name": "android.activity.current"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes |