open_nodes
Retrieve specific entities from a knowledge graph synchronized with GitHub repositories for remote memory management and collaboration.
Instructions
특정 이름의 엔티티들을 조회합니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes |
Implementation Reference
- src/index.ts:562-577 (handler)The handler function that implements the core logic for the 'open_nodes' tool. It retrieves entities by the provided names using the MemoryGraphManager and returns a JSON-formatted response with the found nodes.private async handleOpenNodes(args: any) { const nodes = this.memoryManager.getNodes(args.names); return { content: [{ type: 'text', text: JSON.stringify({ success: true, requestedNames: args.names, nodes: nodes, found: nodes.length, requested: args.names.length, }, null, 2), }], }; }
- src/index.ts:228-237 (schema)The input schema definition for the 'open_nodes' tool, specifying an array of names as input.inputSchema: { type: 'object', properties: { names: { type: 'array', items: { type: 'string' }, }, }, required: ['names'], },
- src/index.ts:225-238 (registration)The tool registration in the ListTools response, including name, description, and input schema.{ name: 'open_nodes', description: '특정 이름의 엔티티들을 조회합니다', inputSchema: { type: 'object', properties: { names: { type: 'array', items: { type: 'string' }, }, }, required: ['names'], }, },
- src/index.ts:394-395 (registration)The switch case in the CallToolRequest handler that routes 'open_nodes' calls to the handleOpenNodes function.case 'open_nodes': return await this.handleOpenNodes(args);
- src/memory-graph.ts:141-145 (helper)The helper method in MemoryGraphManager that retrieves Entity objects by exact names from the graph, used by the open_nodes handler.getNodes(names: string[]): Entity[] { return names .map(name => this.graph.entities.get(name)) .filter((entity): entity is Entity => entity !== undefined); }