Save Draft
save_draftSave an email as a draft without sending. Accepts optional fields and returns a server-assigned UID.
Instructions
Save an email as a draft in the Drafts folder without sending it. All fields are optional — drafts can be incomplete. Returns the server-assigned UID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Recipient address(es), comma-separated | |
| cc | No | CC addresses, comma-separated | |
| bcc | No | BCC addresses, comma-separated | |
| subject | No | Email subject line | |
| body | No | Email body (plain text or HTML) | |
| isHtml | No | ||
| attachments | No | Attachments as objects with filename, content (base64), contentType | |
| inReplyTo | No | Message-ID this is a reply to | |
| references | No | Thread reference Message-IDs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| uid | No | IMAP UID assigned to the draft | |
| error | No |