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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "browser_handle_dialog"
}
}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. |