browser_handle_dialog
Accept or dismiss JavaScript alert, confirm, or prompt dialogs, including optional text entry, by calling this before the triggering action to manage them automatically.
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) |