browser_dialog_handle
Accept or dismiss JavaScript alert, confirm, and prompt dialogs, optionally entering text for prompts, to continue browser automation without dialog interruptions.
Instructions
Handle a JavaScript dialog (alert, confirm, or prompt) by accepting or dismissing it
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_dialog_handle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Dialog action: accept or dismiss | |
| promptText | No | Text to enter in a prompt dialog |