Recall Memories
recallRetrieve relevant memories for user queries to fetch prior context, preferences, and facts before responding.
Instructions
Retrieve relevant memories for a given query. Call at the start of user turns to fetch prior context, preferences, and facts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The user message or search query to recall memories for |
Implementation Reference
- src/index.ts:52-86 (handler)Registration and handler implementation for the 'recall' tool.
server.registerTool( "recall", { title: "Recall Memories", description: "Retrieve relevant memories for a given query. Call at the start of user turns to fetch prior context, preferences, and facts.", inputSchema: { query: z .string() .describe("The user message or search query to recall memories for"), }, }, async ({ query }) => { try { const client = await getRemoteClient(); const result = await client.callTool({ name: "recall", arguments: { query }, }); return { content: (result.content as Array<{ type: "text"; text: string }>) || [ { type: "text", text: "No memories found" }, ], }; } catch (error) { const message = error instanceof Error ? error.message : String(error); return { content: [ { type: "text" as const, text: `Error recalling memories: ${message}` }, ], isError: true, }; } }, );