current_app
Identify which app is currently in the foreground on an Android device by returning its package name; optionally specify a device serial.
Instructions
Get the foreground app package
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": "current_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial (optional; defaults to first ADB_SERIAL entry or the only connected device) |