Save Draft
saveDraftSave a new message to the identity's Drafts folder without sending or opening a compose window, as the compose window does; returns messageId + folderPath, for the user to review and send later (a reply or forward: replyToMessage or…
Instructions
Save a new message to the identity's Drafts folder without sending or opening a compose window, as the compose window does; returns messageId + folderPath, for the user to review and send later (a reply or forward: replyToMessage or forwardMessage with mode draft; to send now: sendMail). With draftId, rewrite that draft instead: passed fields replace, omitted ones (body, recipients, attachments, reply headers) are kept, and the old version is removed.
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": "saveDraft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC recipients (comma-separated) | |
| to | No | Recipient email address(es), comma-separated. Optional -- a draft can have no recipient. | |
| bcc | No | BCC recipients (comma-separated) | |
| body | No | Email body | |
| from | No | Sender identity (email address or identity ID from listAccounts) | |
| isHtml | No | Set to true if body contains HTML markup (default: false). With draftId the draft keeps its format; isHtml changes it only when the whole body is replaced | |
| draftId | No | messageId of an existing draft to edit (from saveDraft, replyToMessage/forwardMessage mode draft, or a search in Drafts) | |
| subject | No | Email subject line | |
| keepQuote | No | With draftId and body: replace only the typed text, keeping cite line, quote, forwarded message and signature | |
| folderPath | No | Drafts folder URI of draftId; searched in all Drafts folders when omitted | |
| attachments | No | Attachments: file paths (strings) or inline objects ({name, contentType, base64}) | |
| keepAttachments | No | With draftId: keep the draft's attachments (new ones are added) |