slimtoken.minify_tool_result
Compress large tool output blocks by type detection to reduce token usage. Produces compact representations with a metadata header, preserving safety across pairs.
Instructions
Compress a large tool_result content block using type detection (directory listing, git output, logs, JSON, source). LOSSY — emits a compact representation plus a [slimtoken-compressed] metadata header. Pair-safe by construction (only the content field changes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | tool_result content (string or list of text blocks) |