browser_handle_dialogs
Set whether alert, confirm, and prompt dialogs on a tab are accepted or dismissed and provide prompt text, enabling browser automation to proceed without manual popup handling.
Instructions
Set how alert/confirm/prompt dialogs are answered on a tab (they are auto-accepted by default and logged to browser_console).
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": "browser_handle_dialogs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab to act on. Defaults to the tab last opened/selected by an agent, else the active tab. | |
| accept | No | ||
| promptText | No |