Get Foreground App
mobile_get_foreground_appIdentify the app currently in the foreground on a mobile device, including focused Android activity or iOS view controller, to verify the active screen before interacting.
Instructions
Get the app currently in the foreground on the device, including the focused activity class on Android or view controller class on iOS when available. Use this to verify which app or screen you are on before interacting with it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | The device identifier to use. Use mobile_list_available_devices to find which devices are available to you. |