handle_dialog
Arm OK/cancel or prompt text for the next alert, confirm, or prompt before the action that opens it, or set a standing rule; otherwise such dialogs are dismissed automatically.
Instructions
Arm the answer for the next alert / confirm / prompt your action opens in a tab, or set a standing rule. Without it such a dialog is dismissed (and the reply of the action that caused it says so). Arm it before the action that opens the dialog. A dialog no agent action opened is left to the user; while it is open, handle_dialog answers it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "handle_dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Remove armed answers and the standing rule. | |
| tabId | No | Tab to act on, from tabs_context. Omitted: this session's active tab. Pass it always when several agents share the session. | |
| accept | No | true: OK / accept. false: Cancel / dismiss. | |
| standing | No | Apply to every dialog in this tab until cleared, not only the next one. | |
| prompt_text | No | Text to enter into a prompt(). |