handle_dialog
Accept or dismiss browser dialogs, such as alerts, confirms, or prompts, for a specific page and optionally supply prompt text to keep automation moving.
Instructions
Accept or dismiss browser 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": {
"action": "<action>"
},
"name": "handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| pageId | No | ||
| promptText | No |