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
commit e6933ca98b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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