JavaScript dialogs
dialogInspect recent alert, confirm, and prompt popups, clear the log, or set automatic answers to prevent blocking during browser automation.
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 |