handle_dialog
Accept or dismiss JavaScript alert, confirm, and prompt dialogs in a browser tab, and supply text when a prompt requires input.
Instructions
Handle a JavaScript dialog (alert, confirm, prompt)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accept": "<accept>"
},
"name": "handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab ID (optional) | |
| accept | Yes | Accept (true) or dismiss (false) the dialog | |
| promptText | No | Text to enter for prompt dialogs |