Save Draft
saveDraftSave a composed email to the Drafts folder without sending or opening a compose window, or update an existing draft while keeping omitted fields unchanged.
Instructions
Save a composed message to the identity's Drafts folder without sending or opening a compose window, as the compose window does; returns messageId + folderPath, for the user to review and send later. With draftId, rewrite that draft instead: passed fields replace, omitted ones (body, recipients, attachments, reply headers) are kept, and the old version is removed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC recipients (comma-separated) | |
| to | No | Recipient email address(es), comma-separated. Optional -- a draft can have no recipient. | |
| bcc | No | BCC recipients (comma-separated) | |
| body | No | Email body | |
| from | No | Sender identity (email address or identity ID from listAccounts) | |
| isHtml | No | Set to true if body contains HTML markup (default: false). With draftId the draft keeps its format; isHtml changes it only when the whole body is replaced | |
| draftId | No | messageId of an existing draft to edit (from saveDraft, replyToMessage/forwardMessage mode draft, or a search in Drafts) | |
| subject | No | Email subject line | |
| keepQuote | No | With draftId and body: replace only the typed text, keeping cite line, quote, forwarded message and signature | |
| folderPath | No | Drafts folder URI of draftId; searched in all Drafts folders when omitted | |
| attachments | No | Attachments: file paths (strings) or inline objects ({name, contentType, base64}) | |
| keepAttachments | No | With draftId: keep the draft's attachments (new ones are added) |