Create fmsg draft
create_draftCreates an unsent message or reply draft so you can compose, review, and discard it before sending; nothing is sent until the draft is sent.
Instructions
Create an unsent draft: a new message, or a reply when reply_to is given (reply rules and reply-all apply). Nothing is sent until send_draft; delete_draft discards it. The draft is visible in the user's other fmsg clients. Secrets in the body and topic are redacted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | recipient addresses (@user@domain) or short names; for a reply, overrides reply-all | |
| body | Yes | message body; Markdown unless type says otherwise | |
| type | No | body media type | text/markdown; charset=utf-8 |
| files | No | files the user shared in this chat (images, PDFs and so on); the host fills these in and this server downloads them, so never write their bytes as base64 | |
| topic | No | thread topic for a new message; not allowed with reply_to | |
| no_reply | No | ask recipients (and their agents) not to reply | |
| reply_to | No | message this draft replies to | |
| important | No | mark as important for recipients | |
| attachments | No | files to attach now | |
| include_owner | No | also send to your owner, if whoami shows one | |
| allow_no_reply | No | draft a reply even though the parent asked for no replies |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| hint | No | for you, not the user: a better way to do this next time | |
| next | Yes | ||
| files | No | the files given by reference, as attached: the name used, size and hex sha256 of the bytes | |
| topic | Yes | ||
| upload | No | where to upload more attachments; present when this server has a public URL | |
| draft_id | Yes | ||
| redacted | Yes | the kinds of secret replaced; empty when none | |
| resolved | No | short names and how they resolved, when any were given; confirm with the user if an address looks wrong | |
| warnings | Yes | things to tell the user, such as redacted secrets or resolved short names | |
| parent_id | Yes | ||
| redactions | Yes | secrets replaced with placeholders in the draft | |
| attachments | Yes | sorted by filename, the same order in every tool |