browser_handle_dialog
Set up a handler for the next browser dialog (alert, confirm, prompt) before triggering the action. Choose to accept or provide prompt text.
Instructions
Set up a handler for the next browser dialog (alert/confirm/prompt).
Call this BEFORE the action that triggers the dialog.
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 |
|---|---|---|---|
| accept | Yes | ||
| prompt_text | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |