Update draft
update_draftModify an existing email draft while preserving any fields you omit. Update recipients, subject, body, and attachments, or clear values as needed.
Instructions
Change an existing draft. Fields left out keep their current values. To clear to, cc or bcc, pass an empty list, and to clear the subject, an empty string. bodyText and bodyHtml replace the whole body together, and attachments replaces all of the attachments. To keep the quoted original when you replace a reply draft's body, pass its replyToMessageId again. A quote Fluxmail added earlier is replaced, not repeated.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"draftId": "<draftId>"
},
"name": "update_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 | |
| draftId | Yes | ||
| 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 |