read_graph
Access and retrieve the complete knowledge graph stored in the Memory Server to enable AI systems to recall user-specific information across conversations.
Instructions
Read the entire knowledge graph
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.ts:152-154 (handler)The core handler function that implements the logic for the 'read_graph' tool by loading the entire knowledge graph from the memory file.async readGraph(): Promise<KnowledgeGraph> { return this.loadGraph(); }
- index.ts:47-50 (schema)Type schema defining the structure of the KnowledgeGraph object returned by the read_graph tool.interface KnowledgeGraph { entities: Entity[]; relations: Relation[]; }
- index.ts:420-427 (registration)Registration of the 'read_graph' tool in the ListToolsRequestSchema response, including name, description, and empty input schema.{ name: "read_graph", description: "Read the entire knowledge graph", inputSchema: { type: "object", properties: {}, }, },
- index.ts:529-530 (handler)Dispatch handler in the CallToolRequestSchema that executes the read_graph tool by calling readGraph and serializing the result to JSON.case "read_graph": return { content: [{ type: "text", text: JSON.stringify(await knowledgeGraphManager.readGraph(), null, 2) }] };