set_dialog_behavior
Configure automatic handling of JavaScript dialogs by choosing to accept or dismiss them, ensuring beforeunload is always dismissed.
Instructions
Set how JS dialogs are auto-handled: 'accept' (default) or 'dismiss'. beforeunload is always dismissed.
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": {
"behavior": "<behavior>"
},
"name": "set_dialog_behavior"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| behavior | Yes |