Skip to content

Commit 7631cdb

Browse files
committed
CallToolResult.isError should not be required
1 parent 2c22086 commit 7631cdb

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().default(false),
722+
isError: z.boolean().default(false).optional(),
723723
});
724724

725725
/**

0 commit comments

Comments
 (0)