memory_context
Builds a compact context block from relevant memories for a given topic, enabling LLMs to inject targeted memory into prompts.
Instructions
Build a compact context block from the most relevant memories for a given topic. Best for injecting memory into prompts.
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": {
"topic": "<topic>"
},
"name": "memory_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | ||
| topic | Yes |