memory_context
Build a context window of relevant memories tailored to your query, enabling LLMs to recall past interactions and knowledge for accurate responses.
Instructions
Build a context window from relevant memories for LLM input.
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": "memory_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What is the current task or question? | |
| max_tokens | No | Approximate max tokens for the context. Default: 2000 | |
| session_id | No | Prioritize memories from this session. |