docs(ask): update prompt snippet and guidelines

This commit is contained in:
Erik Kotsiuba
2026-04-17 19:13:59 +02:00
parent 16ff8c42e2
commit c1ac241655
+7
View File
@@ -12,6 +12,13 @@ export function registerAskTool(pi: ExtensionAPI) {
label: "Ask User", label: "Ask User",
description: description:
"Ask the user one or more structured questions when clarification is required. Supports single-select, multi-select, and preview questions. Use `preview` when an option needs a dedicated preview pane (for example, code, layout, or configuration previews). Return the selected answers as structured data instead of guessing.", "Ask the user one or more structured questions when clarification is required. Supports single-select, multi-select, and preview questions. Use `preview` when an option needs a dedicated preview pane (for example, code, layout, or configuration previews). Return the selected answers as structured data instead of guessing.",
promptSnippet:
"Ask the user structured clarification questions and return the answers as structured data",
promptGuidelines: [
"Use this tool when requirements are ambiguous or when user preferences materially affect implementation.",
"Ask 1-3 concise questions instead of guessing.",
"Prefer short labels and 2-4 clear options per question.",
],
parameters: AskParamsSchema, parameters: AskParamsSchema,
async execute(_toolCallId, params: AskParams, _signal, _onUpdate, ctx) { async execute(_toolCallId, params: AskParams, _signal, _onUpdate, ctx) {