edit_draft
Update an existing email draft by modifying only the fields you specify, such as recipients, subject, or body. The old draft is replaced with the new version automatically.
Instructions
Edit an existing draft email. Since JMAP emails are immutable, this atomically destroys the old draft and creates a new one with the updated fields. Only fields you provide will be changed; others are preserved from the original draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Updated CC email addresses (optional) | |
| to | No | Updated recipient email addresses (optional, keeps existing if omitted) | |
| bcc | No | Updated BCC email addresses (optional) | |
| from | No | Updated sender email address (optional) | |
| emailId | Yes | The ID of the draft email to edit | |
| replyTo | No | Reply-To email addresses (replies go here instead of to the sender) | |
| subject | No | Updated email subject (optional) | |
| htmlBody | No | Updated HTML body (optional) | |
| textBody | No | Updated plain text body (optional) | |
| 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. |