Compress Contexts
compress_contextsSelects informative, diverse paragraphs within an approximate token budget to compress text while preserving key content.
Instructions
Choose informative, diverse paragraphs under an approximate text-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": {
"paragraphs": "<paragraphs>"
},
"name": "compress_contexts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num_tokens | No | ||
| paragraphs | Yes | ||
| dedup_threshold | No | ||
| similarity_budget_threshold | No | ||
| long_paragraph_token_threshold | No | ||
| paragraph_summary_max_sentences | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |