appium_alert
Accept, dismiss, or read system alert text in mobile app tests to handle unexpected popups and continue automation.
Instructions
Handle system alerts with action=accept|dismiss, or read alert text with action=get_text.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "appium_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform on alert: accept, dismiss, or get_text | |
| sessionId | No | Session ID; defaults to the active session. | |
| buttonLabel | No | Optional label of the button to click for accept/dismiss. |