inject_context
Retrieve relevant project memories as formatted context for complex tasks, enabling AI agents to access historical information and constraints when starting multi-step work.
Instructions
Retrieve the most relevant memories for the current task and return them as a single formatted context block, ready to prepend to a prompt or include in a system message.
When to call: at the start of a complex or multi-step task where relevant project history, constraints, or preferences may exist in memory. Prefer this over recall when you want a single ready-to-use block rather than a list of individual memories.
Returns a formatted text block summarising the relevant memories, and a count of how many memories were used. Returns empty if none are relevant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Describe the current task or topic in plain language. The server retrieves memories semantically related to this description. Example: 'refactoring the authentication module' or 'setting up the CI pipeline for the mobile app'. |