chrome_dialog
Handle blocking JavaScript dialogs (alert/confirm/prompt/beforeunload) in Chrome tabs. Check the message, then accept or dismiss, providing text for prompts.
Instructions
Inspect or answer a JavaScript dialog (alert/confirm/prompt/beforeunload) that is blocking a tab. Dialogs are never accepted automatically: read the message, then accept or dismiss (promptText for 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": "chrome_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Chrome tab id (default: active tab) | |
| action | No | status | |
| promptText | No |