Variable: emailMessageSchema
constemailMessageSchema:ZodObject<{attachments:ZodOptional<ZodArray<ZodObject<{content:ZodOptional<ZodString>;contentType:ZodOptional<ZodString>;encoding:ZodOptional<ZodString>;filename:ZodString; },$strict>>>;bcc:ZodOptional<ZodArray<ZodString>>;body:ZodString;cc:ZodOptional<ZodArray<ZodString>>;subject:ZodString;to:ZodArray<ZodString>; },$strip>
Schema for the email a model asks to send (the tool input).
emailMessage fields
Section titled “emailMessage fields”to: One or more recipient email addresses (e.g. [“alice@example.com”, “bob@example.com”]). Provide at least one.subject: Email subject line.body: Email content rendered through the configured React Email template.cc(optional): Optional CC recipient addresses (one or more).bcc(optional): Optional BCC recipient addresses (one or more).attachments(optional): Optional file attachments to include with the message.