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.
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. |