current_app
Identifies the Android package and activity currently in the foreground, helping agents verify which app screen is active during automated testing.
Instructions
Package and activity currently in the foreground.
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 | adb serial; optional when exactly one device is connected |