send-saved-draft
Previews a stored IMAP draft, then sends that exact approved revision through its matching SMTP identity; dry runs by default.
Instructions
Use when: previewing a current stored IMAP Drafts message, then submitting exactly its approved revision through a matching configured SMTP identity. dryRun defaults to true. Returns: full sender/To/Cc/Bcc/Reply-To, plain/HTML body and attachment preview with UIDVALIDITY/UID/MIME SHA-256; or explicit submitted/partial/submission_unknown/not_submitted status, accepted/rejected recipients and separate Sent-copy/cleanup results. Do not use when: the draft is non-IMAP, signed/encrypted, ambiguous, unpreviewable or lacks a matching IMAP/SMTP login. No AppleScript fallback. Safety: dryRun=false SENDS real email. Show the complete current preview and obtain explicit approval before passing its approvedSha256 and approvedUidValidity. Never retry a partial/unknown send or switch transport. Only full acknowledged acceptance permits revision-checked MOVE to Trash; MOVE support and unambiguous Trash are required for cleanup. Unverified cleanup is not confirmed removal. Repeated attempted revisions are guarded for this server process only; after restart reconcile with the provider before any retry. This tool, including preview, is disabled in no_send/read_only modes.
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": "send-saved-draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview without sending by default; false submits the approved current revision once. | |
| draftId | Yes | An imap: ID freshly listed in the account's SPECIAL-USE Drafts mailbox. Numeric IDs are refused. | |
| approvedSha256 | No | Current stored MIME SHA-256 from preview, required to apply changes. | |
| approvedUidValidity | No | Current mailbox UIDVALIDITY from preview, required to apply changes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| bcc | No | ||
| uid | No | ||
| body | No | ||
| from | No | ||
| error | No | ||
| isHtml | No | ||
| sha256 | No | ||
| status | No | ||
| draftId | No | ||
| partial | No | ||
| replyTo | No | ||
| subject | No | ||
| success | No | ||
| accepted | No | ||
| htmlBody | No | ||
| rejected | No | ||
| sentCopy | No | ||
| messageId | No | ||
| attachments | No | ||
| uidValidity | No | ||
| draftRemoved | No | ||
| sentCopyError | No | ||
| deliveryUnknown | No | ||
| alreadyAttempted | No | ||
| draftRemovalError | No | ||
| draftCleanupStatus | No | ||
| sentCopyAlreadyFiled | No | ||
| draftRemovalVerification | No |