handle_dialog
Handle JavaScript dialogs in a live browser tab by accepting, dismissing, or reporting them to avoid automation interruption.
Instructions
Inspect or handle a JavaScript dialog on the requested real-browser tab. action is dismiss, accept, or manual; manual reports the dialog without choosing.
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": {
"action": "<action>"
},
"name": "handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| timeout | No | ||
| session_id | No | ||
| prompt_text | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||