get_current_activity
Identify the currently resumed Android activity or window to diagnose app state and support test assertions.
Instructions
Read the currently resumed Android activity/window for diagnosis and assertions.
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_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_serial | No | ADB serial such as emulator-5554, a USB serial, or host:port. If omitted, the active device is used; a sole ready device is selected automatically. |