Ask a yes or no question
ask_confirmationDisplays a yes/no dialog with custom title, message, and button labels, then waits for the user's response or timeout so you can confirm an action.
Instructions
Ask the user a yes or no question in a dialog, and wait for the answer.
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": {
"message": "<message>"
},
"name": "ask_confirmation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | The label of the button that confirms. | OK |
| title | No | The dialog's title. | |
| cancel | No | The label of the button that cancels. | Cancel |
| message | Yes | What the dialog says. | |
| timeout_seconds | No | How long to wait for the user, in seconds, before closing the dialog as if it was cancelled. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | Yes | True when the user clicked the OK button. False when they cancelled, or didn't answer in time. |