browser_handle_dialog
Accepts or dismisses a JavaScript dialog on a tab, optionally sending prompt text, and returns the dialog's original details and whether it was accepted.
Instructions
Accept/dismiss a JS dialog and return its original details and accepted.
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": {
"tab_handle": "<tab_handle>",
"accept": "<accept>"
},
"name": "browser_handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accept | Yes | ||
| tab_handle | Yes | ||
| prompt_text | No | Response sent to the website for a prompt dialog. |