Handle dialog
browser_handle_dialogHandle browser dialogs like alerts, confirms, and prompts by accepting or rejecting them with optional text input, overriding automatic dismissal.
Instructions
Decide the next dialog (alert/confirm/prompt) instead of auto-dismissing it.
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": {
"sessionId": "<sessionId>",
"accept": "<accept>"
},
"name": "browser_handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accept | Yes | ||
| sessionId | Yes | Id of the isolated browser session | |
| promptText | No |