Ask to pick from a list
ask_choicePrompt the user to choose one option from a list in a dialog, then return the selection or timeout result.
Instructions
Let the user pick one option from a list, in a dialog. It waits until they answer, or the time runs out.
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": {
"options": "<options>"
},
"name": "ask_choice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | The dialog's title. | |
| prompt | No | What the dialog says above the list. | |
| default | No | The option selected when the dialog opens. | |
| options | Yes | The options to pick from. | |
| 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 |
|---|---|---|---|
| choice | Yes | The option picked. Null when the user cancelled, or didn't answer in time. |