dialog_detect
Detect visible modal dialogs, alerts, and confirmations with their titles, messages, and button labels. Call after any action that may raise a prompt to handle popups across UI frameworks.
Instructions
Detect modal dialogs, alerts and confirmation overlays that are visible right now, with their title, message and button labels. Detection is structural — ARIA roles, the dialog element, and stacked-overlay geometry — so it works regardless of which UI framework drew it. Call it after any action that might raise a prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | 'main' (default) or 'all' to include iframes. | all |