browser_handle_dialog
Accept or dismiss blocking JavaScript dialogs (alert, confirm, prompt, beforeunload) to unblock the page. Optionally enter prompt text and get a snapshot.
Instructions
Accept or dismiss the JavaScript dialog (alert, confirm, prompt, beforeunload) that is blocking the page
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": {
"accept": "<accept>"
},
"name": "browser_handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accept | Yes | true to press OK / accept, false to press Cancel / dismiss | |
| snapshot | No | Also return the page snapshot after the action (default: no). Use it when you need to see the result right away. | |
| promptText | No | Text to enter into a prompt() dialog before accepting |