handle_dialog
Accept or dismiss a blocking JavaScript alert, confirm, prompt, or beforeunload dialog, and supply text to fill a prompt so page interactions can continue.
Instructions
Accept or dismiss a JavaScript alert/confirm/prompt/beforeunload dialog that is blocking the page. promptText fills a prompt().
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": "handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab ID from tabs_list. Omit for the active tab. | |
| accept | No | Default true. | |
| profile | No | Chrome profile: folder ("Profile 3"), nickname, or unique display name. Omit to use the current profile. | |
| promptText | No |