Save draft
save_draftSave an email as a draft without sending it, placing it in the Drafts folder. Optionally replace an existing draft atomically so a failed save leaves the original intact.
Instructions
Save an email as a draft without sending it. The draft is placed in the user's \Drafts special-use folder (resolved at runtime; falls back to literal Drafts if no annotation). The destination is intentionally not caller-controlled — prior versions accepted an arbitrary folder parameter that allowed planting \Draft-flagged messages in INBOX or other paths, which was confusing to anyone scanning the mailbox.
Pass replaceDraftUid to atomically replace a previous draft instead of appending a new one — the new draft is APPENDed first, then (only on success) the old one is deleted, so a failed append leaves your original draft intact.
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": {
"to": "<to>",
"subject": "<subject>"
},
"name": "save_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC recipient(s), separated by commas or semicolons, each name@example.com or "Name" <name@example.com> | |
| to | Yes | Recipient email address(es), separated by commas or semicolons, each name@example.com or "Name" <name@example.com> | |
| bcc | No | BCC recipient(s), separated by commas or semicolons, each name@example.com or "Name" <name@example.com> | |
| body | No | Email body content (plain text or HTML). Required unless `markdownBody` is provided. | |
| isHtml | No | Whether `body` contains HTML content | |
| replyTo | No | Reply-To address for the draft. The saved draft is checked: if the server didn't keep it (Bridge has dropped it in live tests), the result says `[reply-to:dropped]`, and send_draft would send without one. send_email sets it and reports whether Proton rewrote it, but can't make Proton keep it. | |
| subject | Yes | Email subject line | |
| fromName | No | Display name for the From field. Rejects values containing `@` by default to prevent display-name-as-address spoofing — pass `allowAddressLikeFromName: true` to override. | |
| attachments | No | File attachments: base64 `content`, or a `path` inside ALLOW_FILE_ATTACH_DIR. Proton limits a message's attachments to 25 MB. | |
| markdownBody | No | Markdown source — rendered to HTML before saving. Mutually exclusive with `body`/`isHtml`. | |
| sanitizeHtml | No | Run the HTML body through a conservative allowlist (strips scripts, event handlers, inline styles, remote `<img>` beacons) before APPEND. Default `true` for safer-by-default drafts. No-op on plain-text. | |
| replaceDraftUid | No | Optional UID of a previous draft in the Drafts folder to replace. The new draft is a complete replacement: fields you leave out here (cc, bcc, replyTo...) are not carried over from the old one, so pass them again. The new draft is saved first and the old one deleted only after that succeeds. Refused when the old draft looks unrelated (different subject and no recipient in common) unless `replaceUnrelated: true`. | |
| replaceUnrelated | No | Allow replaceDraftUid to replace a draft with a different subject and no shared recipient. | |
| allowAddressLikeFromName | No | Opt-in escape valve for `fromName` containing `@`. Default false. |