handle_dialog
Accept or dismiss browser dialogs opened during Chrome automation, optionally targeting a page and supplying prompt text.
Instructions
If a browser dialog was opened, use this 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": {
"action": "<action>"
},
"name": "handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| pageId | No | Targets a specific page by ID. Defaults to the selected page. | |
| promptText | No |