llmtrim_compress_text
Compress a single text blob to reduce token usage and report token savings. Wrap a chunk like a tool output or document in a minimal request to shrink it.
Instructions
Compress a single text blob and report the token savings. Use this to shrink one chunk (a tool output, a document) rather than a whole request. The text is wrapped in a minimal request, compressed, and the shrunk text is returned.
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": {
"text": "<text>"
},
"name": "llmtrim_compress_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | A single text blob to shrink (a tool output, a document, a message). It is wrapped in a one-message request, compressed, and the shrunk text is returned. |