browser_handle_dialog
Accept or dismiss JavaScript alert, confirm, and prompt dialogs, with optional text input and wait mode to handle the next dialog automatically.
Instructions
Accept or dismiss 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": "browser_handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | When true, wait for and handle the next dialog before returning. Default false arms a one-shot handler for the next action. | |
| accept | Yes | true = accept, false = dismiss | |
| timeout | No | Milliseconds to wait when wait=true | |
| promptText | No | Text to enter for prompt dialogs |