handle_dialog
Auto-accept or dismiss the next JavaScript alert, confirm, or prompt dialog in an Electron app; set clear to disarm the automatic response.
Instructions
Auto accept or dismiss the next JavaScript dialogs (alert/confirm/prompt). clear:true disarms.
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 |
|---|---|---|---|
| clear | No | ||
| action | No | ||
| targetId | No | ||
| processId | No | Target process ID. Omit if only one app is running. | |
| promptText | No | Value when accepting a prompt |