browser_handle_dialog
Accept or dismiss an open browser alert, confirm, or prompt and supply prompt text when required. Returns NO_DIALOG if no dialog is open.
Instructions
Accept or dismiss the open alert, confirm or prompt; promptText answers a prompt. No open dialog: NO_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": {
"tabId": "<tabId>",
"accept": "<accept>"
},
"name": "browser_handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | ||
| accept | Yes | ||
| promptText | No |