compress_context
Compress context by removing irrelevant sections based on task intent, reducing token usage while preserving essential information.
Instructions
Compress context (code, docs) by removing irrelevant sections. Returns pruned context with token savings.
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": {
"context": "<context>",
"intent": "<intent>"
},
"name": "compress_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | The context text to compress | |
| intent | Yes | What the task is about — used to determine relevance |