mobium state
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Say whether an app is in front, in the background, not running or not installed
For any app, where mobium current names only the one in front. An app
under its own permission prompt is still in front, and the answer names
what covers it. On iOS a background app also says whether it is suspended.
Usage
mobium state <app> [flags]
Examples
Ask whether an app is running
mobium state com.android.settings
Printed on an Android 15 emulator:
com.android.settings is in front
More, from mobium state --help
mobium state org.wikipedia
No screenshot: it reads whether an app is running, and nothing on the screen changes.
The tool
state calls app_state; its arguments and what every client calls it are there.