Get Current App
get_current_appRetrieve the package name and activity name of the foreground app on a mobile device to identify what the user is currently viewing.
Instructions
Get the package name and activity name of the app that is currently in the foreground on the device. Useful for determining what the user is currently looking at.
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": {
"device_id": "<device_id>"
},
"name": "get_current_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | Device serial ID |