页面对话框记录
browser_dialogsRead and clear intercepted alert, confirm, and prompt dialogs to detect interruptions without stalling automation. Use before clicking controls that trigger confirm/prompt responses.
Instructions
Read (and optionally clear) dialogs the page tried to open — alert / confirm / prompt. Dialogs are intercepted instead of blocking: by default confirm returns false and prompt returns null. Use browser_dialog_respond first to choose what confirm/prompt return, then click the control that triggers them. Use this tool to detect "are you sure?" style interruptions without stalling the 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": "browser_dialogs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Clear the recorded list after reading (default false) | |
| tabId | No | Tab id (default: active tab) |