handle_dialog
Answer blocking browser alert, confirm, and prompt dialogs by accepting or canceling, typing prompt text when needed, and continuing page interaction.
Instructions
Answer the alert, confirm or prompt dialog a page opened, which blocks the page until answered.
accept=true presses OK, false presses Cancel. text is typed into a prompt before pressing OK. Reports a navigation, or what changed on the page, like click.
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": "handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| accept | No | ||
| tab_id | No |