Hermes Agent Archive / Skills

Forcing document-style delivery: [[as_document]]

From Official Docs · September 25, 2026

Sometimes you want the opposite of inline preview: you want the file delivered as a downloadable attachment, not a re-compressed image bubble. The classic example is a high-resolution screenshot or chart - Telegram's sendPhoto recompresses it to ~200 KB at 1280 px, destroying readability. A 1-2 MB PNG sent via sendDocument keeps the original bytes intact. If a response (or any text inside it - typically the last line) contains the literal directive [[as_document]] , every media path extracted from that response is delivered as a document/file attachment rather than an image bubble: The directive is stripped before delivery, so users never see it. Granularity is intentionally all-or-nothing per response: emit [[as_document]] once and every image path in the same response is delivered as a document. This mirrors the scope of [[audio_as_voice]] . Use it from a skill when: You produce screenshots or charts the user needs as files (for editing in another tool, archiving, sharing intact). The default lossy preview would obscure detail (small text, pixel-accurate diagrams, color-sensitive renders). Platforms without a separate document path (e.g. SMS) fall back to whatever attachment mech…

From the official Hermes Agent documentation.

Here is your rendered chart:

/home/user/.hermes/cache/chart-q4-2025.png

[[as_document]]