browser_handle_dialog
Set up handling for the next browser dialog by accepting or dismissing alerts, confirms, or prompts. Optionally provide text for prompt dialogs.
Instructions
Set up handling for the next browser dialog (alert/confirm/prompt).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Whether to accept or dismiss the dialog. | |
| tab_id | No | Stable tab id from browser_tabs list; preferred when multiple agents run in parallel. Mutually exclusive with tab_index. | |
| tab_index | No | Tab index from browser_tabs list. If omitted, uses the lowest-index tab. Mutually exclusive with tab_id. | |
| prompt_text | No | Text to enter if the dialog is a prompt. |