edit_draft
Replace an existing email draft with updated content. Atomic operation preserves original values for empty fields.
Instructions
Replace a draft with updated content.
JMAP emails are immutable — this creates a new draft and destroys the old one atomically. Empty fields keep the original value.
Args: draft_id: ID of the existing draft to replace. to: Recipients (comma-separated). Empty keeps original. subject: Email subject. Empty keeps original. text_body: Plain-text body. Empty keeps original. html_body: HTML body. Empty keeps original. cc: CC recipients. Empty keeps original. bcc: BCC recipients. Empty keeps original.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_id | Yes | ||
| to | No | ||
| subject | No | ||
| text_body | No | ||
| html_body | No | ||
| cc | No | ||
| bcc | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||