ios_alert_respond
Answer the alert currently on screen: accept it, dismiss it, or press a specific button by label. Use ios_alert_status first to read the available buttons — 'accept' and 'dismiss' press the alert's default controls, which is wrong for a prompt whose buttons are not a clean accept/dismiss pair (for example 'Allow Once' / 'While Using the App' / “Don’t Allow”), and button is how you answer those. text is typed into the alert's first text field before the button is pressed, for prompts that ask for input. Requires an active iOS automation session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Type this into the alert's text field before pressing. | |
| udid | Yes | iOS device UDID | |
| action | No | Press the alert's default accept or dismiss control. Default 'accept'. | |
| button | No | Press this button label instead of the default control, e.g. "Allow Once". |