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.
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 |