JavaScript dialogs
dialogInspect and manage browser alert, confirm, and prompt popups, clear their log, or set automatic responses to prevent automation from blocking.
Instructions
Inspect recent alert/confirm/prompt dialogs, clear the log, or change how future dialogs are answered. Interception avoids blocking automation.
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": "dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | ||
| action | No | status | |
| prompt | No | Answer for window.prompt. | |
| confirm | No | Answer for window.confirm. | |
| intercept | No |