Interactive User Questions
The ask_user_question tool allows the agent to pause and ask you structured, selectable questions mid-task—similar to Claude Code’s interactive pattern.
How It Works
- The agent calls
ask_user_questionwith structured questions - In TUI/Web UI: an interactive dialog appears
- In ACP: questions are formatted as numbered text and the agent pauses
- You respond by selecting options or typing free text
- The agent receives your answers and continues
Features
- 1-4 questions per call
- 2-4 options per question
- Multi-select support (checkboxes)
- Free-text “Other” option automatically included
- Short headers (≤12 chars) displayed as chips
- Summary screen before confirmation
- Reconnect-safe: pending questions survive reconnection
Example
The agent might ask:
Question 1/2: Database Choice
○ PostgreSQL
● SQLite
○ MySQL
○ Other
Question 2/2: ORM Preference
○ GORM
○ sqlx
○ OtherConfiguration
Disable the tool entirely:
[InternalTools]
AskUserQuestionDisabled = trueInterface Behavior
| Interface | Behavior |
|---|---|
| TUI | Modal dialog with keyboard navigation |
| Web UI | Overlay dialog with mouse/keyboard support |
| ACP | Formatted text, agent pauses until response |
| API | Structured response via API endpoint |
The agent uses this tool when it needs clarification on implementation choices, architecture decisions, or ambiguous requirements. It’s more structured than free-form text input.