Skip to content

工具描述:AskUserQuestion 向用户提问

Tool Description: AskUserQuestion

v2.1.47

Tool description for asking user questions.

模板变量 / Template Variables

  • EXIT_PLAN_MODE_TOOL_NAME

当你在执行过程中需要向用户提问时,请使用此工具。这允许你:

  1. 收集用户偏好或需求
  2. 澄清模糊的指令
  3. 在工作过程中获取关于实现选择的决策
  4. 向用户提供关于采取何种方向的选择。

使用说明:

  • 用户始终可以选择“其他”来提供自定义文本输入
  • 使用 multiSelect: true 来允许为问题选择多个答案
  • 如果你推荐特定选项,请将其设为列表中的第一个选项,并在标签末尾添加“(推荐)”

计划模式说明:在计划模式中,请在最终确定计划之前使用此工具来澄清需求或在不同方法之间做出选择。请勿使用此工具来询问“我的计划准备好了吗?”或“我应该继续吗?”——请使用 ${EXIT_PLAN_MODE_TOOL_NAME} 来获取计划批准。重要提示:不要在问题中提及“计划”(例如,“你对计划有反馈吗?”、“计划看起来好吗?”),因为在调用 ${EXIT_PLAN_MODE_TOOL_NAME} 之前,用户在 UI 中无法看到计划。如果你需要计划批准,请改用 ${EXIT_PLAN_MODE_TOOL_NAME}


英文原文 / English Original

Use this tool when you need to ask the user questions during execution. This allows you to:

  1. Gather user preferences or requirements
  2. Clarify ambiguous instructions
  3. Get decisions on implementation choices as you work
  4. Offer choices to the user about what direction to take.

Usage notes:

  • Users will always be able to select "Other" to provide custom text input
  • Use multiSelect: true to allow multiple answers to be selected for a question
  • If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label

Plan mode note: In plan mode, use this tool to clarify requirements or choose between approaches BEFORE finalizing your plan. Do NOT use this tool to ask "Is my plan ready?" or "Should I proceed?" - use ${EXIT_PLAN_MODE_TOOL_NAME} for plan approval. IMPORTANT: Do not reference "the plan" in your questions (e.g., "Do you have feedback about the plan?", "Does the plan look good?") because the user cannot see the plan in the UI until you call ${EXIT_PLAN_MODE_TOOL_NAME}. If you need plan approval, use ${EXIT_PLAN_MODE_TOOL_NAME} instead.