context_compress
Compress a prompt payload before it reaches an LLM.
Shrinks JSON tool outputs, logs, and long text using SmartCrusher-lite
sampling. Originals are stored in CCR (Redis) with ref= markers for
context_retrieve. Always runs; tune thresholds via TEAMSHARED_COMPRESS_*.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "context_compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | OpenAI-style chat messages to compress before sending to an LLM. User messages are preserved; long tool/assistant/system blocks shrink. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||