clarify_with_user
Resolves ambiguous draft prompts by generating 1–3 targeted clarifying questions with suggested answers. Skips questions when confident, or accepts a force flag to always produce questions.
Instructions
Given an ambiguous draft prompt, return 1–3 targeted clarifying questions instead of guessing. Each question carries a suggested_answer you can accept verbatim to keep moving, an optional 2–4 quick-pick options list, and a dimension tag (audience/scope/format/length/tone/constraints/goal/platform). When the analyzer is highly confident AND the prompt is non-trivially long, the tool short-circuits with clarificationNeeded: false so callers can pipeline this in front of optimize_prompt without paying a latency tax on every call. Pass force: true to always generate questions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The draft prompt the user is unsure about. | |
| category | No | Category hint. Will skip questions about category/platform if you pass it. | |
| cwd | No | Working directory to pull workspace rules (CLAUDE.md / AGENTS.md / .cursorrules) from. Defaults to server cwd. | |
| file_path | No | Active file path — informs the clarifier's defaults. | |
| file_language | No | Explicit language override for the active file. | |
| file_excerpt | No | Short excerpt of the active file to ground the questions. | |
| user_locale | No | ||
| force | No | Always generate questions even when the analyzer is highly confident. Useful for UIs that want to surface clarification on every call. | |
| max_questions | No | Cap on returned questions. Default 3, hard max 5. |