create_draft
Create email drafts without sending, including reply threading via in-reply-to and references headers. Each call produces a new draft, so call once per message.
Instructions
Create an email draft without sending it. Supports threading headers for replies. IMPORTANT: each call creates a new draft — do not call twice for the same message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC email addresses (optional) | |
| to | No | Recipient email addresses (optional) | |
| bcc | No | BCC email addresses (optional) | |
| from | No | Sender email address (optional, defaults to account primary email) | |
| replyTo | No | Reply-To email addresses (replies go here instead of to the sender) | |
| subject | No | Email subject (optional) | |
| htmlBody | No | HTML body (optional) | |
| textBody | No | Plain text body (optional) | |
| inReplyTo | No | Message-IDs to reply to (optional, for threading) | |
| mailboxId | No | Mailbox ID to save the draft to (optional, defaults to Drafts folder) | |
| references | No | Message-IDs for References header (optional, for threading) | |
| attachments | No | Files to attach. Each entry must use EXACTLY ONE source: localPath (a file inside the configured download directory), emailId + attachmentId (re-attach an attachment from an existing email — no bytes are copied), or blobId (an already-uploaded JMAP blob). Optional name/type override the inferred filename and MIME type. |