distill_response
Compress any generic tool response (JSON, HTML, or text) to fit a specific token budget, preserving critical semantic information for efficient LLM context management.
Instructions
Progressively compress any generic tool response (JSON, HTML, or text) to fit within a specific token budget.
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": {
"response_data": "<response_data>",
"token_budget": "<token_budget>"
},
"name": "distill_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response_data | Yes | ||
| token_budget | Yes | ||
| content_type | No | auto | |
| preserve_keys | No |