draft_update
Fully replace an existing email draft's recipients, subject, body, and attachments; the old draft_id becomes invalid and a new one is returned.
Instructions
Replace a draft's recipients, subject, body and attachments (full replacement). Returns a new draft_id; the old one stops working. Requires MAIL_DRAFTS_ENABLED=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC recipients (optional, max 50) | |
| to | Yes | Recipient email addresses (1..50) | |
| bcc | No | BCC recipients (optional, max 50) | |
| subject | Yes | Email subject (1..998 characters) | |
| draft_id | Yes | `draft_id` returned by `draft_create`, `draft_update` or `draft_list` | |
| reply_to | No | Reply-To address (optional) | |
| body_html | No | HTML body (at least one of body_text or body_html required) | |
| body_text | No | Plain text body (at least one of body_text or body_html required) | |
| account_id | No | Account identifier (defaults to `"default"`) | default |
| references | No | References header for threading (optional) | |
| attachments | No | File attachments (optional) | |
| in_reply_to | No | In-Reply-To message ID for threading (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool-specific data payload | |
| meta | Yes | Execution metadata (timestamp, duration) | |
| summary | Yes | Human-readable summary of the operation outcome |