mobile_current_app
Retrieve the foreground app on a mobile device using its serial number. Returns the app name and package name to identify what is currently active.
Instructions
Get the app currently in the foreground.
Args: serialno: The mobile device serialno, from list_devices.
Returns: JSON envelope whose data carries app_name and package_name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"serialno": "<serialno>"
},
"name": "mobile_current_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serialno | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |