get_current_activity
Identify the current foreground screen on an Android or iOS device to verify UI state during mobile testing. Returns the activity name for the specified device.
Instructions
Get the name of the currently resumed activity (foreground screen)
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_id | No | Target device ID. If omitted, uses the default device. |