From 5c6a7a247e3a6e31d5abf7d0818417b9a75839a8 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Thu, 7 Nov 2024 13:36:57 +0000 Subject: [PATCH] `CallToolResult.isError` should be optional --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index f932699e..1d147aa9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -719,7 +719,7 @@ export const CallToolResultSchema = ResultSchema.extend({ content: z.array( z.union([TextContentSchema, ImageContentSchema, EmbeddedResourceSchema]), ), - isError: z.boolean(), + isError: z.boolean().default(false), }); /**