create_draft
Draft a new email or reply, with support for attachments and both HTML and plain text bodies.
Instructions
Create a draft. For a reply draft, pass replyToMessageId (recipients/subject are derived; replyAll for reply-all).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Recipients, each "Name <a@x.com>" or "a@x.com" | |
| to | No | Recipients, each "Name <a@x.com>" or "a@x.com" | |
| bcc | No | Recipients, each "Name <a@x.com>" or "a@x.com" | |
| subject | No | Defaults to "Re: ..." when replying | |
| bodyHtml | No | HTML body | |
| bodyText | No | Plain-text body | |
| replyAll | No | With replyToMessageId: reply to all original recipients | |
| accountId | No | Account to operate on. Optional when exactly one account is connected. | |
| attachments | No | ||
| replyToMessageId | No | Message being replied to; threads correctly and computes recipients if "to" is omitted |