From 550b2ece55ffca9b436e38555287e02174fc0ccd Mon Sep 17 00:00:00 2001 From: gimenes Date: Wed, 21 May 2025 19:02:26 -0300 Subject: [PATCH] fix: enable arrays and boolean data to be structured data. --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index ae25848e..6e5b15ca 100644 --- a/src/types.ts +++ b/src/types.ts @@ -892,7 +892,7 @@ export const CallToolResultSchema = ResultSchema.extend({ * * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema. */ - structuredContent: z.object({}).passthrough().optional(), + structuredContent: z.any().optional(), /** * Whether the tool call ended in an error.