Prepare mail reply
mail_prepare_replyPrepare reply or forward headers and quoted body for an email. Use the computed headers to create a draft without altering stored messages.
Instructions
Derive reply/forward headers and the quoted or forwarded body.
This is read-only: it computes what a reply or forward should look like but writes nothing. Pass the result's To/Cc/Subject/In-Reply-To to mail_create_draft (draft tier) if you want it actually saved as a draft.
Args: message_id: A Message-ID as seen in mail_search/mail_read_thread output. quote: Whether to include the original body (quoted with '> ' for reply/reply-all, or as a labelled forwarded block for forward). mode: 'reply' (sender only, honouring Reply-To), 'reply-all' (all original recipients minus your own configured addresses, honouring Mail-Followup-To, which is what mailing lists set and what makes the difference between a correct reply and an embarrassing one), or 'forward' (no In-Reply-To/References, subject gets exactly one 'Fwd:' prefix, body is a labelled forwarded block with the original headers, not an interleaved quote).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | reply | |
| quote | No | ||
| message_id | Yes |