mDM_send_file
Send a FILE to a contact as a first-class mDM file message. Base64 bytes → Storage → message-send file attachment. SCAFFOLD: mDM E2EE seal is TODO (Lane A).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient identity id (UUID). Use mDM_list_contacts to find it. | |
| mime | Yes | MIME type, e.g. audio/ogg, application/pdf, image/png. | |
| caption | No | ||
| filename | No | Original filename (file only). | |
| file_base64 | Yes | Attachment bytes as base64 (or a data: URL). MCP is JSON-only, so binary is base64-encoded. Max ~15 MB decoded. | |
| reply_to_id | No | Optional id of the message being replied to. | |
| thread_label | No | Optional thread label within the conversation (mDM USP: multiple threads per contact). |