dialog_handler
Automatically handle JavaScript dialog boxes in Electron apps by accepting or dismissing alerts, confirms, prompts, and beforeunload dialogs without manual intervention.
Instructions
Install an auto-responder for JavaScript dialogs (alert/confirm/prompt/beforeunload). Once set, the next dialog(s) will be auto-accepted or dismissed without a human. Pass action: "accept" or "dismiss", optional text for prompts, and once: true to auto-uninstall after the first dialog (default true).
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_handler"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Default accept. | |
| text | No | Text to enter in a prompt() dialog. | |
| once | No | Auto-uninstall after first dialog. Default true. |