Draft Operations
draftCompose and manage email messages with review-before-send controls: create, update, send, delete, reply, or forward, plus preview and recipient checks.
Instructions
Draft lifecycle for review-before-send workflows (destructive: covers send and delete). action=create saves a new draft and returns its id (dryRun: true previews without saving; checkRecipients: true runs mail-tips first). action=update patches a draft by id (only fields passed change). action=send sends a draft and counts against the send-email session limit (0 refuses every send). action=delete moves a draft to Recoverable Items (restorable for a limited time). update/send/delete refuse any id that is not an unsent draft. action=reply/reply-all creates a reply draft from a message id (comment prepends text; not with body). action=forward creates a forward draft (needs id and to). The recipient allowlist (OUTLOOK_ALLOWED_RECIPIENTS) applies to create/update/forward, to the draft's current to/cc/bcc on send, and to reply/reply-all, whose draft is deleted if a recipient is not allowed. Returns the draft on create/update/reply/forward; a status on send/delete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Comma-separated CC email addresses | |
| id | No | Draft or message ID. Required for update/send/delete/reply/reply-all/forward. update/send/delete need a draft ID; reply/reply-all/forward take any message ID. | |
| to | No | Comma-separated recipient email addresses (optional for create/update, required for forward) | |
| bcc | No | Comma-separated BCC email addresses | |
| body | No | Email body (plain text or HTML) | |
| action | Yes | Action to perform (required) | |
| dryRun | No | Preview only (action=create): shows the draft without saving it. Other actions refuse dryRun and change nothing. Default false. | |
| comment | No | Comment text for reply/forward (prepended to original message). Cannot combine with body. | |
| subject | No | Email subject | |
| importance | No | Email importance (default: normal) | |
| checkRecipients | No | Check recipients for out-of-office, delivery restrictions before saving (action=create, default: false) |