{
"type": "object",
"properties": {
"to": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Recipient email address(es). Single email string or array. Example: \"john@example.com\" or [\"john@example.com\", \"jane@example.com\"]"
},
"subject": {
"type": "string",
"description": "Email subject line. Required for email delivery"
},
"htmlBody": {
"type": "string",
"description": "HTML formatted email content. Example: \"<p>Hello <b>World</b></p>\". Either htmlBody or textBody (or both) must be provided. If only textBody is provided, htmlBody will be auto-generated"
},
"textBody": {
"type": "string",
"description": "Plain text email content. Either htmlBody or textBody (or both) must be provided. If only htmlBody is provided, textBody will be auto-generated by stripping HTML tags"
},
"replyTo": {
"type": "string",
"description": "Reply-to email address (where replies go). Example: \"support@example.com\""
},
"cc": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "CC recipient(s). Example: \"manager@example.com\" or [\"manager@example.com\", \"team@example.com\"]"
},
"bcc": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "BCC recipient(s) - hidden from other recipients. Example: \"archive@example.com\""
},
"threadId": {
"type": "string",
"description": "Email thread ID to add this email to an existing conversation"
},
"attachmentUrls": {
"type": "array",
"items": {
"type": "string"
},
"description": "URLs of files to attach. Files will be fetched and attached automatically. Example: [\"https://example.com/report.pdf\", \"https://example.com/image.png\"]"
}
},
"required": [
"to",
"subject"
]
}