Skip to content

Variable: cardResultSchema

const cardResultSchema: ZodObject<{ card: ZodObject<{ $schema: ZodString; actions: ZodOptional<ZodArray<ZodRecord<ZodString, ZodUnknown>>>; body: ZodArray<ZodRecord<ZodString, ZodUnknown>>; type: ZodLiteral<"AdaptiveCard">; version: ZodString; }, $strip>; title: ZodString; }, $strip>

The result the card tool returns: the compiled Adaptive Card plus the title echoed back for a caller that wants a label without re-reading the document. Kept separate from AdaptiveCard so the tool output stays additive.