read_graph
Retrieve the complete knowledge graph from remote storage to access synchronized memory entities, relationships, and observations for collaboration.
Instructions
전체 지식 그래프를 읽습니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:646-666 (handler)The main handler function for the 'read_graph' tool. It retrieves the full graph from the MemoryGraphManager, serializes it into a JSON-friendly format, and returns it as text content.private async handleReadGraph(args: any) { const graph = this.memoryManager.getGraph(); const serializable = { entities: Object.fromEntries(graph.entities), relations: graph.relations, metadata: graph.metadata, summary: { entityCount: graph.entities.size, relationCount: graph.relations.length, lastModified: graph.metadata.lastModified, lastSync: graph.metadata.lastSync, }, }; return { content: [{ type: 'text', text: JSON.stringify(serializable, null, 2), }], }; }
- src/index.ts:309-316 (registration)Registration of the 'read_graph' tool in the list of tools provided by ListToolsRequestSchema. Includes the tool name, description, and input schema (empty object).{ name: 'read_graph', description: '전체 지식 그래프를 읽습니다', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:312-315 (schema)Input schema definition for the 'read_graph' tool, which requires no parameters (empty properties).inputSchema: { type: 'object', properties: {}, },