add_attachment
Attach a file to an existing plaintext document. Replaces any prior attachment. Works with UTF-8 text or base64 binary. Refuses if document is encrypted.
Instructions
Attach a file to an existing plaintext document. Replaces any pre-existing attachment for that document (one attachment per doc by design). Refuses if the document is encrypted client-side. Provide either 'content' (UTF-8 text, e.g. markdown) or 'content_base64' (binary, base64-encoded).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | UTF-8 text content (mutually exclusive with content_base64). | |
| content_base64 | No | Base64-encoded binary content (mutually exclusive with content). | |
| filename | Yes | Filename for the attachment, e.g. 'plan.md'. Must not contain path separators or equal the reserved name 'dmencblob'. | |
| id | Yes | Target document id (UUID). |