browser_handle_dialog
Handle JavaScript dialog boxes (alert, confirm, prompt) that block browser interaction. Accept or dismiss dialogs to continue automated browser tasks.
Instructions
Handle JavaScript dialogs (alert, confirm, prompt). Dialogs block page interaction until handled.
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 | Accept or dismiss the dialog | |
| promptText | No | Text to enter for prompt() dialogs |