ask
Prompts the controlling terminal for an operator's answer or confirmation, accepting optional choices, retries, and deadlines before a command proceeds.
Instructions
dbabrain common.cli ask: One question for the controlling terminal, and the answers it takes.
Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line.
Request fields (pass them as request):
prompt (required): The question, shown as written.
choices: The accepted answers, lower case; none means any line is the answer.
tries: How often a person is asked again after an answer not in choices.
deadline_seconds: How long to wait for a line; nothing by then is no answer.
answer: A reply the caller already collected, held to choices like a typed one.
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": "ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |