fix(mcp): describe section enum by parameter name, not invented schema path
This commit is contained in:
parent
0bed3a5d12
commit
e656b52f95
|
|
@ -3,7 +3,7 @@
|
|||
exports[`D0 parity spike — additive & gated tool registration > pre-D0 production design tool DEFINITIONS are unchanged (snapshot) > pre-d0-design-tool-definitions 1`] = `
|
||||
[
|
||||
{
|
||||
"description": "Get design knowledge prompt. Pass \`section\` to retrieve a focused subset instead of the full prompt; the available section names are published in \`inputSchema.section.enum\` (derived at server-start from the implementation registry, so this description never drifts as sections are added). Omit \`section\` for the full prompt. The "style" and "design-md" sections are derived from the active document's design.md so the response never leaks another file's design system.",
|
||||
"description": "Get design knowledge prompt. Pass \`section\` to retrieve a focused subset instead of the full prompt; the accepted section names are the enum on the \`section\` parameter below (derived at server-start from the implementation registry, so this description never drifts as sections are added). Omit \`section\` for the full prompt. The "style" and "design-md" sections are derived from the active document's design.md so the response never leaks another file's design system.",
|
||||
"inputSchema": {
|
||||
"properties": {
|
||||
"filePath": {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ const CORE_DESIGN_TOOL_DEFINITIONS = [
|
|||
name: 'get_design_prompt',
|
||||
description:
|
||||
'Get design knowledge prompt. Pass `section` to retrieve a focused subset instead of the ' +
|
||||
'full prompt; the available section names are published in `inputSchema.section.enum` ' +
|
||||
'full prompt; the accepted section names are the enum on the `section` parameter below ' +
|
||||
'(derived at server-start from the implementation registry, so this description never ' +
|
||||
'drifts as sections are added). Omit `section` for the full prompt. The "style" and ' +
|
||||
'"design-md" sections are derived from the active document\'s design.md so the response ' +
|
||||
|
|
|
|||
Loading…
Reference in a new issue