Handle dialog
browser_dialogAccept or dismiss a pending alert, confirm, or prompt dialog on the active browser tab, optionally supplying prompt text to complete blocking JavaScript dialogs.
Instructions
Accept or dismiss a pending alert/confirm/prompt dialog on the active tab.
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_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accept | Yes | ||
| promptText | No |