slimtoken.minify_tool_result
Use content-type detection to compress large tool results into a compact representation with a metadata header, reducing token usage for backend forwarding.
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) |