read_graph
Retrieve the complete knowledge graph from Obsidian Memory MCP to visualize AI memories as interconnected entities and relationships in Markdown format.
Instructions
Read the entire knowledge graph
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.ts:226-227 (handler)Handler for the 'read_graph' tool within the CallToolRequestSchema request handler's switch statement. Executes by calling storageManager.readGraph() and returning the JSON-serialized knowledge graph.
case "read_graph": return { content: [{ type: "text", text: JSON.stringify(await storageManager.readGraph(), null, 2) }] }; - index.ts:165-172 (schema)Input schema definition for the 'read_graph' tool, registered in the tools list returned by the ListToolsRequestSchema handler. Takes no input parameters.
{ name: "read_graph", description: "Read the entire knowledge graph", inputSchema: { type: "object", properties: {}, }, }, - Core helper method 'readGraph' in MarkdownStorageManager class that loads and returns the full KnowledgeGraph by delegating to the private loadGraph() method.
async readGraph(): Promise<KnowledgeGraph> { return this.loadGraph(); }