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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dialog_detect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | 'main' (default) or 'all' to include iframes. | all |