handle_dialog
Accept or dismiss browser dialogs on a specific page, optionally entering prompt text to resolve the dialog.
Instructions
If a browser dialog was opened, use this command to handle it
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": {
"pageId": "<pageId>",
"action": "<action>"
},
"name": "handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Whether to dismiss or accept the dialog | |
| pageId | Yes | Targets a specific page by ID. | |
| promptText | No | Optional prompt text to enter into the dialog. |