Fix: Changed structuredContent output to match outputSchema (#3099)

This commit is contained in:
Stefan Dirkse
2025-12-11 14:48:04 +01:00
committed by GitHub
parent 44afe4c5d5
commit e6933ca98b

View File

@@ -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 }
};
}
);