dialog_handle
Accepts or dismisses browser dialogs (alert, confirm, prompt). Returns type, message, and acceptance status. For prompts, fill input text before accepting.
Instructions
Handle the currently open alert/confirm/prompt dialog.
Returns dialog type, message, and whether it was accepted. Fails immediately
if no dialog is present — use dialog_auto for pre-emptive handling.
For prompt dialogs, pass text to fill the input field before accepting.
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": "dialog_handle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| accept | No | ||
| tab_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |