ask-user-question
它能做什么
它教 AI 智能体通过应用中的对话框向你提问,因为你看不到它的终端输出。适用于希望智能体在行动前先与自己确认的人。
适用场景
- ✓当任务不明确,智能体需要你在开始前说明时。
- ✓当智能体需要你在几个选项之间做选择时。
- ✓当某项操作具有破坏性或很敏感,需要你先批准时。
技能链接
https://github.com/MemTensor/MemOS/blob/main/apps/openwork-memos-integration/apps/desktop/skills/ask-user-question/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在你整理我的文件之前,请问我希望如何分组。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会发送一个带简短标签和几个选项的问题,应用中会出现对话框。你的回答会返回给智能体,然后它继续工作。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Ask User Question
Use this MCP tool to ask users questions and get their responses. This is the ONLY way to communicate with the user - they cannot see CLI/terminal output.
Critical Rule
The user CANNOT see your text output or CLI prompts!
If you write "Let me ask you..." and then just output text - THE USER WILL NOT SEE IT. You MUST call this tool to display a modal in the UI.
When to Use
- Clarifying questions before starting ambiguous tasks
- Asking user preferences (e.g., "How would you like files organized?")
- Confirming actions before executing (especially destructive/irreversible ones)
- Getting approval for sensitive actions (financial, messaging, deletion, etc.)
- Any situation where you need user input to proceed
Parameters
{
"questions": [{
"question": "Your question to the user",
"header": "Short label (max 12 chars)",
"options": [
{ "label": "Option 1", "description": "What this does" },
{ "label": "Option 2", "description": "What this does" }
],
"multiSelect": false
}]
}
question(required): The question text to displayheader(optional): Short category label, shown as modal title (max 12 chars)options(optional): Array of selectable choices (2-4 recommended)multiSelect(optional): Allow selecting multiple options (default: false)
Custom text input: To allow users to type their own response, include an option with label "Other" (case-insensitive). When selected, the UI shows a text input field.
{ "label": "Other", "description": "Type your own response" }
Important: When "Other" is selected, the response will be User responded: [their text] instead of User selected: Other. You must wait for and handle this text response - do NOT proceed as if they selected a predefined option.
Examples
Asking about organization preferences
AskUserQuestion({
"questions": [{
"question": "How would you like to organize your Downloads folder?",
"header": "Organize",
"options": [
{ "label": "By file type", "description": "Group into Documents, Images, Videos, etc." },
{ "label": "By date", "description": "Group by month/year" },
{ "label": "By project", "description": "You'll help me name project folders" }
]
}]
})
Confirming a destructive action
AskUserQuestion({
"questions": [{
"question": "Delete these 15 duplicate files?",
"header": "Confirm",
"options": [
{ "label": "Delete all", "description": "Remove all 15 duplicates" },
{ "label": "Review first", "description": "Show me the list before deleting" },
{ "label": "Cancel", "description": "Don't delete anything" }
]
}]
})
Simple yes/no confirmation
AskUserQuestion({
"questions": [{
"question": "Should I proceed with sending this email?",
"header": "Send email",
"options": [
{ "label": "Send", "description": "Send the email now" },
{ "label": "Cancel", "description": "Don't send" }
]
}]
})
Response Format
The tool returns the user's selection:
User selected: By file type- Single selectionUser selected: Option A, Option B- Multiple selections (if multiSelect: true)User responded: [custom text]- If user typed a custom responseUser declined to answer the question.- If user dismissed the modal
Wrong vs Correct
WRONG (user won't see this):
I'll help organize your files. How would you like them organized?
- By type
- By date
- By project
CORRECT (user will see a modal):
AskUserQuestion({
"questions": [{
"question": "How would you like your files organized?",
"options": [
{ "label": "By type" },
{ "label": "By date" },
{ "label": "By project" }
]
}]
})
常见问题
为什么不直接在聊天中提问?
该技能说明,你看不到智能体的文字输出或终端提示,所以对话框是联系你的方式。
我可以输入自己的答案吗?
可以。该技能包括自定义文本输入选项。
每个问题应该有几个选项?
该技能建议每个问题提供两到四个选项。
详情
作者的原始描述
Ask users questions via the UI. Use when you need clarification, user preferences, or confirmation before proceeding. The user CANNOT see CLI output - this tool is the ONLY way to communicate with them.
repo: MemTensor/MemOS
热度
- GitHub 星标
- 12k
- 排名
- #11401
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
memos-local
12k帮你的智能体安装并设置 MemOS,这是 OpenClaw 的本地记忆插件,让它能记住你设备上的过往对话。
browserwing-admin
12k帮你的智能体安装和管理 BrowserWing 浏览器自动化工具,包括创建、运行和修复自动化脚本。
browserwing-executor
12k让你的智能体通过 HTTP API 控制浏览器,打开页面、点击、输入、提取数据、截图,并运行成批的步骤。
memos-memory-guide
12k教你的智能体在你提到过去的对话、你的偏好或过去的决定时,搜索你的历史对话和共享的团队记忆。