browser_handle_dialog
Accept or dismiss browser dialogs like alerts, confirms, and prompts. Provide text for prompt dialogs when accepting.
Instructions
Handle a JavaScript dialog (alert, confirm, prompt). Dialogs are queued as they appear. This tool handles the most recent unhandled dialog.
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 | Whether to accept the dialog (true) or dismiss it (false) | |
| promptText | No | Text to enter for prompt dialogs |