get_full_memory
Retrieve full content of a memory document, preserving all Markdown formatting (headings, bold, italic, code, links, tables, lists). Use the memory ID to access detailed project context.
Instructions
Retrieve the complete content of a memory document with all Markdown formatting preserved (headings, bold, italic, code, links, tables, lists, etc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_id | Yes | The ID of the memory document to retrieve |
Input Schema (JSON Schema)
{
"properties": {
"memory_id": {
"description": "The ID of the memory document to retrieve",
"type": "string"
}
},
"required": [
"memory_id"
],
"type": "object"
}
Implementation Reference
- src/tools/getFullMemory.ts:4-37 (handler)The core handler function that implements the get_full_memory tool logic: validates memory_id, reads the full memory document from storage, and returns it formatted as Markdown text with metadata.export async function getFullMemoryTool( storageManager: StorageManager, args: any ): Promise<any> { const params = args as GetFullMemoryParams; if (!params.memory_id) { throw new Error("Memory ID is required"); } // Read the memory document const memory = await storageManager.readMemory(params.memory_id); if (!memory) { throw new Error(`Memory document with ID '${params.memory_id}' not found`); } return { content: [ { type: "text", text: `# Full Memory: ${params.memory_id} **Created:** ${memory.metadata.created} **Updated:** ${memory.metadata.updated} **Status:** ${memory.metadata.status} **Tags:** ${memory.metadata.tags.join(", ") || "None"} --- ${memory.content}`, }, ], }; }
- src/index.ts:286-287 (registration)Registration in the tool dispatch switch statement: calls getFullMemoryTool when 'get_full_memory' is invoked.case "get_full_memory": return await getFullMemoryTool(storageManager, args);
- src/index.ts:234-248 (schema)Tool registration schema: defines name, description, and input schema (memory_id required) for the MCP tool list.{ name: "get_full_memory", description: "Retrieve the complete content of a memory document with all Markdown formatting preserved (headings, **bold**, *italic*, `code`, [links](url), tables, lists, etc.)", inputSchema: { type: "object", properties: { memory_id: { type: "string", description: "The ID of the memory document to retrieve", }, }, required: ["memory_id"], }, },
- src/types/memory.ts:83-85 (schema)TypeScript interface defining the input parameters for the getFullMemoryTool.export interface GetFullMemoryParams { memory_id: string; }