browser_handle_dialog
Manage browser alert, confirm, and prompt dialogs by checking status, then accepting or dismissing pending dialogs to continue automation.
Instructions
Call action=status before triggering alert/confirm/prompt to start observing dialogs. Then explicitly accept or dismiss a pending dialog. Does not handle native file pickers or browser security prompts.
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": "browser_handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Optional browser tab id to act on instead of the focused tab. | |
| action | Yes | ||
| promptText | No |