mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-17 15:53:23 +02:00
Fix: Changed structuredContent output to match outputSchema (#3099)
This commit is contained in:
@@ -500,7 +500,7 @@ server.registerTool(
|
||||
const contentBlock = { type: "text" as const, text };
|
||||
return {
|
||||
content: [contentBlock],
|
||||
structuredContent: { content: [contentBlock] }
|
||||
structuredContent: { content: text }
|
||||
};
|
||||
}
|
||||
);
|
||||
@@ -570,7 +570,7 @@ server.registerTool(
|
||||
const contentBlock = { type: "text" as const, text };
|
||||
return {
|
||||
content: [contentBlock],
|
||||
structuredContent: { content: [contentBlock] }
|
||||
structuredContent: { content: text }
|
||||
};
|
||||
}
|
||||
);
|
||||
@@ -599,7 +599,7 @@ server.registerTool(
|
||||
const contentBlock = { type: "text" as const, text };
|
||||
return {
|
||||
content: [contentBlock],
|
||||
structuredContent: { content: [contentBlock] }
|
||||
structuredContent: { content: text }
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user