From 30389be119a57528dd02090303c18fa671c4ffb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=BD=AE?= Date: Sun, 17 May 2026 14:20:38 +0800 Subject: [PATCH] update ask_user --- skills/common/mcp-ui/hooks/ask_user_guide.md | 23 ++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/skills/common/mcp-ui/hooks/ask_user_guide.md b/skills/common/mcp-ui/hooks/ask_user_guide.md index c82cae0..8ce2b9e 100644 --- a/skills/common/mcp-ui/hooks/ask_user_guide.md +++ b/skills/common/mcp-ui/hooks/ask_user_guide.md @@ -1,6 +1,26 @@ ## ask_user Tool Usage Guide -When using the `ask_user` tool, follow these rules: +### IMPORTANT: Do NOT write trailing prompts +After calling ask_user, the frontend will automatically display an interactive question UI below your response. Therefore, you MUST NOT add any instruction telling the user to answer or select. + +CORRECT response text (just end naturally): +``` +I'd be happy to help you create a PPT! To get started, I need to know a few things. +``` +Then call ask_user — no extra text needed. + +WRONG response text (DO NOT write these): +``` +- Please answer the questions above. +- Please choose an option from the list below. +- Please answer the above questions, thank you. +- Please select the most suitable option. +- Please provide the following information. +- Please choose from the options below. +- Answer the questions above and I'll get started. +``` + +Just end your response naturally. The interactive UI handles everything. ### When to call ask_user You MUST call this tool in these cases: @@ -55,4 +75,3 @@ WRONG example (DO NOT do this): ### Other rules - Each question MUST be a separate item in the questions array. - NEVER combine multiple questions into a single question string. -- Do NOT add trailing prompts like "请回答以上问题" or "please answer the questions above" in your response text. The interactive UI will be displayed automatically below your response — just finish your response naturally and call ask_user.