open_nodes
Retrieve specific entities from a knowledge graph to access synchronized memory data stored in GitHub repositories for collaborative analysis.
Instructions
특정 이름의 엔티티들을 조회합니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes |
Implementation Reference
- src/index.ts:562-577 (handler)The handler function for the 'open_nodes' tool. It retrieves entities by the provided names using the memoryManager and returns a structured JSON response containing the requested names, found nodes, and counts.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)Input schema defining the expected arguments for the 'open_nodes' tool: an object with a required 'names' array of strings.inputSchema: { type: 'object', properties: { names: { type: 'array', items: { type: 'string' }, }, }, required: ['names'], },
- src/index.ts:225-238 (registration)Registration of the 'open_nodes' tool in the list_tools 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)Dispatch registration in the call_tool request handler switch statement, routing 'open_nodes' calls to the handleOpenNodes method.case 'open_nodes': return await this.handleOpenNodes(args);
- src/memory-graph.ts:141-145 (helper)Helper method in MemoryGraphManager that retrieves Entity objects by exact name matches from the internal graph, filtering out non-existent nodes.getNodes(names: string[]): Entity[] { return names .map(name => this.graph.entities.get(name)) .filter((entity): entity is Entity => entity !== undefined); }