跳到正文
cccskills
免费在 GitHub 公开

ask-user-question

Lets an agent ask for clarification, preferences, or approval through an on-screen dialog. Questions can offer single or multiple choices and custom text input, giving the agent a user response to guide its next step.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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.

查看安装方法

适用场景

  • Clarifying an ambiguous task
  • Choosing how to organize files
  • Confirming deletion or email sending
  • Collecting preferences through custom text

包含的文件(4)

  • SKILL.md4.0 KB
  • package.json333 B
  • src/index.ts5.6 KB
  • tsconfig.json248 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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" }
    ]
  }]
})

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Configure and manage BrowserWing to create, save, and replay browser automation scripts. Use AI exploration to generate repeatable workflows, export scripts as SKILL.md files for agents, and diagnose service or execution problems.

中文简介正在准备中。当前显示英语简介。

  • Setting up BrowserWing and its AI model connection
  • Generating reusable scripts through AI website exploration
  • Exporting browser scripts as SKILL.md files
MemTensor/MemOS1.2万2026年10月17日 更新

Automate browser tasks through BrowserWing's HTTP API, from navigation and form filling to extracting search results. Inspect page structure to identify controls, capture screenshots, and run multiple actions in sequence.

中文简介正在准备中。当前显示英语简介。

  • Filling and submitting web forms
  • Extracting search results and links
  • Capturing screenshots and inspecting page structure
MemTensor/MemOS1.2万2026年10月17日 更新

Automate website navigation, form filling, data extraction, and web app checks while keeping page state between scripts. Use a new Chromium session or connect to an existing Chrome session through an extension.

中文简介正在准备中。当前显示英语简介。

  • Completing workflows in an existing signed-in Chrome session
  • Filling forms and extracting website data
  • Checking web app behavior and capturing screenshots
MemTensor/MemOS1.2万2026年10月17日 更新

Set up, configure, update, and troubleshoot persistent memory for OpenClaw agents. The plugin stores conversations locally and supports automatic recall, task summaries, reusable skills derived from successful tasks, and a visual memory manager.

中文简介正在准备中。当前显示英语简介。

  • Setting up persistent memory for OpenClaw
  • Updating or troubleshooting the memory plugin
  • Choosing local or external memory search models
MemTensor/MemOS1.2万2026年10月17日 更新

Use MemOS Local to find past conversations, preferences, and decisions, then retrieve original messages or task context. The skill also guides sharing memories and reusable procedures with local agents or a configured team.

中文简介正在准备中。当前显示英语简介。

  • Find preferences and decisions from past conversations
  • Read original messages and surrounding dialogue
  • Share memories with local agents or a team
MemTensor/MemOS1.2万2026年10月17日 更新

Adds an explicit permission step before an agent deletes files or directories. It covers shell commands and deletion scripts, groups multiple files into one request, and requires the agent to stop when permission is denied.

中文简介正在准备中。当前显示英语简介。

  • Confirming permission before deleting files
  • Reviewing multiple deletions in one request
  • Adding approval steps to cleanup scripts
MemTensor/MemOS1.2万2026年10月17日 更新

查看 MemTensor 的全部技能

报告此技能的问题