app_launch
Bring an Android app to the foreground and return its focused window details plus state: front, covered, other, or unknown. Optionally restart it or specify an activity.
Instructions
Bring an app to the foreground.
Returns the focused window (package, activity, window) plus state: front (the app has
the focus), covered (the app is in front under a dialog of another package, e.g. a
permission prompt), other (another app is in front) or unknown.
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": {
"package": "<package>"
},
"name": "app_launch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | e.g. com.google.android.gm (Gmail), com.google.android.calendar, com.google.android.apps.docs (Drive). | |
| restart | No | Force-stop first, so the app opens on its start screen. | |
| activity | No | Optional explicit activity. |