Create draft
create_draftCreate an email draft in a connected mailbox, or reply to an existing message with quoted original content, reply-all recipients, and optional attachments.
Instructions
Create a draft in the mailbox. With replyToMessageId, the draft is a reply: recipients and a subject left out come from the original message, replyAll includes all of its recipients, and the original message is quoted below the body unless quoteOriginal is false.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_draft"
}
}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" | |
| from | No | Connected address or an available send-as address | |
| subject | No | Defaults to "Re: ..." when replying | |
| bodyHtml | No | HTML body | |
| bodyText | No | Plain-text body. Line breaks appear in the sent email. Keep each prose paragraph on one continuous line and separate paragraphs with blank lines. | |
| replyAll | No | With replyToMessageId: reply to all original recipients | |
| timeZone | No | With replyToMessageId: IANA time zone, such as America/New_York, for the date above the quoted message. Defaults to the time zone setting. | |
| accountId | No | Account to operate on. Optional when exactly one account is connected. | |
| attachments | No | ||
| quoteOriginal | No | With replyToMessageId: set to false to leave the original message out of the reply. Defaults to true. | |
| attachmentFiles | No | Files to attach from the attachment folder, read by Fluxmail instead of sent as base64. Prefer this to attachments for files on this computer. They are added to the attachments. | |
| replyToMessageId | No | Message being replied to; threads correctly, quotes it below the body and computes recipients if "to" is omitted. To continue a conversation, reply to the first message get_thread returns with order newest |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |