localnest_memory_get
Retrieve a stored memory with its revision history from the LocalNest MCP server's local-first storage system.
Instructions
Fetch one stored memory with revision history.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| response_format | No | json |
Implementation Reference
- src/mcp/tools/memory-store.js:74-80 (handler)The handler for localnest_memory_get, which uses the memory service to fetch an entry by ID.
async ({ id }) => { const item = await memory.getEntry(id); if (!item) { throw new Error(`memory not found: ${id}`); } return normalizeMemoryEntryPayload(item); } - src/mcp/tools/memory-store.js:59-81 (registration)The registration of the localnest_memory_get tool, including its schema and handler definition.
registerJsonTool( ['localnest_memory_get'], { title: 'Memory Get', description: 'Fetch one stored memory with revision history.', inputSchema: { id: z.string().min(1) }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } }, async ({ id }) => { const item = await memory.getEntry(id); if (!item) { throw new Error(`memory not found: ${id}`); } return normalizeMemoryEntryPayload(item); } );