clarik_context_trim
Retrieves relevant context for a query, limited by token budget, to inject memory efficiently.
Instructions
Intelligent memory injection — returns the most relevant facts and context within a 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": {
"query": "<query>"
},
"name": "clarik_context_trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Current query or topic for relevance ranking | |
| budgetTokens | No | Token budget for injected context (default: 4000) | |
| projectPath | No | Project root path for isolation |