compress_context
Compress text via n-gram abbreviation with a legend to reduce token usage for context loading, controlling compression level (light, medium, aggressive).
Instructions
Compress text using n-gram abbreviation with a legend for token-efficient context loading. Unlike format_with_salience_budget (which allocates token budget), this does text-level compression.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to compress | |
| level | No | Compression level (default: medium) |