MCPcopy Create free account
hub / github.com/freecodexyz/free-code / prompt

Function prompt

src/tools/AskUserQuestionTool/AskUserQuestionTool.tsx:117–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 return DESCRIPTION;
116 },
117 async prompt() {
118 const format = getQuestionPreviewFormat();
119 if (format === undefined) {
120 // SDK consumer that hasn't opted into a preview format — omit preview
121 // guidance (they may not render the field at all).
122 return ASK_USER_QUESTION_TOOL_PROMPT;
123 }
124 return ASK_USER_QUESTION_TOOL_PROMPT + PREVIEW_FEATURE_PROMPT[format];
125 },
126 get inputSchema(): InputSchema {
127 return inputSchema();
128 },

Callers

nothing calls this directly

Calls 1

getQuestionPreviewFormatFunction · 0.85

Tested by

no test coverage detected