get_current_app
Retrieves the foreground Android app package and activity, enabling you to verify navigation and deep link results. Use it to assert the current app after interactions.
Instructions
Get the app (package + activity) currently in the foreground. Useful for asserting navigation and deep link results. Android only.
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": "get_current_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | No | Target platform. Inferred if omitted. | |
| device_id | No | Device ID. Omit for the connected device. |