browser_dialog
Manage alert, confirm, and prompt dialogs by setting an automatic accept or dismiss policy, checking status, or answering the currently open dialog to unblock page automation.
Instructions
alert/confirm/prompt block the page until answered. action: status shows the policy and the last dialog; mode: accept|dismiss sets a standing policy so future dialogs are answered automatically; action: answer answers the one that is open right now. Default is no policy — on Drishti the app answers dialogs itself, and two answers to one dialog is worse than one.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Standing policy for dialogs (accept=OK, dismiss=Cancel, off=leave alone) | |
| accept | No | For action=answer: true=OK, false=Cancel (default true) | |
| action | No | status=show policy, set=choose a mode, answer=respond now | |
| promptText | No | Text to type into prompt() when accepting |