mobium alert
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Read a system dialog, or answer it
With no argument, prints what the dialog says and its buttons, or that none is up.
A permission prompt is not part of the app: it is another process's
window, and mobium current reports that process while one is on
screen — com.google.android.permissioncontroller on Android, SpringBoard
on iOS.
accept and dismiss mean yes and no, so they answer a dialog of one or two buttons: a two-button permission prompt is granted by accept and denied by dismiss. They need no knowledge of what the buttons say, so they work in any language. A dialog of three or more is refused, naming its buttons — iOS's location prompt has Allow Once and Allow While Using App, and Android's camera and location prompts While using the app and Only this time, so more than one means yes.
--button presses one by its caption or its position from 1, on any dialog. Every answer says which button it pressed.
An Apple TV has no touch, so its alert is answered with the remote:
move focus with mobium press dpad-left or dpad-right, then press
select. accept, dismiss and --button say so there.
Usage
mobium alert [accept|dismiss] [flags]
Flags
| Flag | Type | Default | What it does |
|---|---|---|---|
--button | string | press this button: its caption, or its position from 1 | |
--text | string | type into a prompt's field before answering |
And the global flags.
Examples
Ask whether a dialog is up, what it says, and its buttons
mobium alert
Printed on an Android 15 emulator:
a dialog is on screen: "Discard changes?\nThey will be lost."
buttons: "KEEP EDITING", "DISCARD"

mobium alert on an Android 15 emulator
Say yes to a dialog of one or two buttons
mobium alert accept
Printed on an Android 15 emulator:
accepted the dialog "Discard changes?\nThey will be lost.": pressed "DISCARD"
| Before | After |
|---|---|
![]() | ![]() |
mobium alert accept on an Android 15 emulator
Press a button by its caption, on a dialog of three
mobium alert --button "Don't Save"
Printed on an Android 15 emulator:
pressed "DON'T SAVE" on the dialog "Save this draft?\nYou can come back to it later."
| Before | After |
|---|---|
![]() | ![]() |
mobium alert --button "Don't Save" on an Android 15 emulator
More, from mobium alert --help
mobium alert # is anything asking? what are its buttons?
mobium alert accept # yes, on a dialog of one or two buttons
mobium alert dismiss # no
mobium alert --button "Allow While Using App" # any dialog, by caption
mobium alert --button 2 # or by position, in any language
mobium alert accept --text "my draft" # fill a prompt, then confirm it
The tool
alert calls app_alert; its arguments and what every client calls it are there.



