edit_draft
Update an existing email draft by modifying specific fields such as recipients, subject, or body. The system atomically replaces the draft while preserving any unchanged fields from the original.
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) |