Skip to content

Commit 5c6a7a2

Browse files
committed
CallToolResult.isError should be optional
1 parent a4031e2 commit 5c6a7a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ export const CallToolResultSchema = ResultSchema.extend({
719719
content: z.array(
720720
z.union([TextContentSchema, ImageContentSchema, EmbeddedResourceSchema]),
721721
),
722-
isError: z.boolean(),
722+
isError: z.boolean().default(false),
723723
});
724724

725725
/**

0 commit comments

Comments
 (0)