distil_compress
Compress large text outputs into a compact digest with a recoverable handle, reducing context usage while preserving exact retrieval on demand.
Instructions
Reversibly compress a text blob — typically a large tool output you want to keep in context cheaply. Returns JSON {"compressed": str, "handle": str|null, "tokens_saved": int}: a compact digest to keep in the conversation, plus an 8-hex handle that recovers the exact original bytes via distil_expand. The original is stored locally (encrypted, owner-only) and never sent anywhere. Use when a tool result is large enough that carrying it verbatim is wasteful; skip it for short text, which comes back unchanged with handle=null and tokens_saved=0. Errors return "error: ..." with isError set; nothing is stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Raw text to compress, passed verbatim — do not pre-summarize or truncate it, or the recovered original will be lossy. |