recall
Search stored memories by query to retrieve relevant information from persistent agent memory across sessions.
Instructions
Search stored memories by query. Returns the most relevant memories.
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": "recall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What to search for | |
| namespace | No | Optional namespace to search within | |
| limit | No | Max results (default 10, max 50) |
Implementation Reference
- src/index.js:117-129 (handler)Handler logic for the 'recall' tool.
case 'recall': { const qs = new URLSearchParams({ q: args.query }); if (args.namespace) qs.set('namespace', args.namespace); if (args.limit) qs.set('limit', args.limit); result = await call('GET', `/memories/search?${qs}`); if (!result.results?.length) { return { content: [{ type: 'text', text: 'No memories found for that query.' }] }; } const text = result.results.map((r, i) => `[${i + 1}] (id: ${r.id})\n${r.content}` ).join('\n\n'); return { content: [{ type: 'text', text }] }; } - src/index.js:44-56 (schema)Input schema definition for the 'recall' tool.
{ name: 'recall', description: 'Search stored memories by query. Returns the most relevant memories.', inputSchema: { type: 'object', properties: { query: { type: 'string', description: 'What to search for' }, namespace: { type: 'string', description: 'Optional namespace to search within' }, limit: { type: 'number', description: 'Max results (default 10, max 50)' }, }, required: ['query'], }, },