get_attachment
Retrieve a file attached to a document. Returns file name, size, and content in base64, plus text rendition when the bytes are valid UTF-8.
Instructions
Fetch the file attached to a plaintext document. Returns filename, byte size, base64-encoded content, and a UTF-8 text rendition when the bytes are valid UTF-8 (e.g. .md, .txt, .json). Refuses if the attachment is encrypted client-side (named '_dmencblob').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id (UUID) whose attachment you want. |