跳到正文
Skillpedia
邮件与消息12k · #11401

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MemTensor/MemOS/blob/main/apps/openwork-memos-integration/apps/desktop/skills/ask-user-question/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 display
  • header (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 selection
  • User selected: Option A, Option B - Multiple selections (if multiSelect: true)
  • User responded: [custom text] - If user typed a custom response
  • User 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能