Save reply draft
save_reply_draftDraft a REPLY that threads under an existing message. Use this, not save_draft, whenever you are answering mail: it sets In-Reply-To and References from the parent, so Gmail and Outlook file the reply in the original conversation instead of starting a new one. This tool never sends it (send_reply sends, if the user's permissions allow). Identify the parent by mail_id (from search_mail) or by its RFC Message-ID. Recipients, sending account and the Re: subject all come from the parent: reply_all=false answers the sender alone, reply_all=true copies everyone except your own addresses. The original is quoted beneath your body. The returned in_reply_to is read back off the saved draft's own file on disk, so it is proof the reply threads rather than a claim; the call fails rather than returning an unthreaded draft as a success. Mail stays in the background. body_method says how the body went in: 'signature' keeps Mail's own formatted quote; 'plain_quote' quotes the original as plain > lines (replies with attachments, or when Mail would put the text below the quote) and note says why. category (e.g. 'Personal') refuses a parent outside accounts with that label. By default the saved draft (new or reply) stays open in a Mail window so the user can review, edit and send it there; the user can turn that off in Keeploop. Pass leave_open=false to save quietly or true to force the window. Omit it to follow the user's setting. left_open says what happened. Accounts are labelled (Personal, Work, ...). For a personal task use the Personal accounts; call list_categories if unsure. attachments takes files already in the user's mail as {mail_id, attachment_id} (from get_email or find_attachments; Mail downloads one it has not stored yet), and absolute paths of files in the user's home folder (not hidden ones or ~/Library; from web and phone apps only as the user's Attach files from this Mac permission allows). Up to 18 MB in total. The user sees every file's name and size in the confirmation. Requires Keeploop Pro.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| mail_id | No | ||
| category | No | ||
| reply_all | No | ||
| leave_open | No | ||
| message_id | No | ||
| attachments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | Yes | ||
| to | Yes | ||
| note | No | ||
| sender | No | ||
| account | Yes | ||
| subject | Yes | ||
| draft_id | No | ||
| left_open | No | ||
| references | No | ||
| rich_quote | No | ||
| attachments | No | ||
| body_method | No | ||
| in_reply_to | No | ||
| threads_under | Yes | ||
| saved_to_drafts | Yes | ||
| threading_verified | No |