Drafts
draftCreate, manage, and send email drafts in a single inbox. Reply, update, or delete unsent messages, with signatures embedded automatically.
Instructions
Manage unsent drafts in one inbox. On IMAP a draft_id changes on every update, so always use the most recent one. The signature is embedded on create and update (include_signature: false to skip) and 'send' transmits the stored body as-is, so it is never doubled. 'reply' also needs read:email, 'send' needs send:email.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Cc addresses. | |
| to | No | Recipient addresses; a draft may have none. | |
| bcc | No | Bcc addresses. | |
| body | No | Plain-text draft body. | |
| inbox | No | Inbox email address; an alternative to inbox_id, which wins when both are given. | |
| limit | No | Drafts per page. | |
| action | Yes | Operation to run. list = saved drafts; create = a new draft, subject and body required; reply = an unsent reply to message_id, kept in its thread; update = overwrite draft_id with the fields you pass; send = send draft_id and remove it from Drafts; delete = discard draft_id without sending. | |
| subject | No | Draft subject line. | |
| draft_id | No | Draft id from the most recent draft call. On IMAP it changes after every update, so a stale one fails. | |
| inbox_id | No | Inbox UUID. Optional when the key has exactly one inbox. Otherwise pass this or `inbox`; omit both and the error lists every inbox_id. | |
| html_body | No | Optional HTML draft body. | |
| reply_all | No | Address the reply to the original To and Cc too. | |
| message_id | No | Message id to reply to. | |
| idempotency_key | No | Opaque key for one operation, outbound or mailbox mutation. Reuse it only when retrying the identical request within 24 hours: the retry is collapsed, not repeated, which matters most for copy. Reuse with different arguments is rejected; omit it for normal behaviour. | |
| include_signature | No | Append the inbox's configured signature. Set false for a terse reply or your own sign-off. |