browser_handle_dialog
Handle JavaScript alert, confirm, or prompt dialogs by accepting or dismissing them before the triggering action. Optionally input text for prompt dialogs.
Instructions
Handle JavaScript alert(), confirm(), or prompt() dialogs. Call this BEFORE triggering the action that causes the dialog. Waits for the dialog to appear, then accepts or dismisses it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to enter for prompt() dialogs | |
| action | No | Accept or dismiss the dialog (default: accept) | |
| timeout | No | Max wait for dialog in ms (default: 10000) |