handle_dialog
Accept, dismiss, or respond to browser alert, confirm, and prompt dialogs during automation; supply prompt text when required.
Instructions
处理页面弹出的 alert/confirm/prompt 对话框。accept=true 确认,false 取消;prompt 可附带输入文字。
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": "handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accept | Yes | ||
| promptText | No |