open_nodes
Retrieve and open specific nodes in a knowledge graph by their names using MemoryMesh's MCP server solution.
Instructions
Open specific nodes in the knowledge graph by their names
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes | An array of node names to retrieve |
Input Schema (JSON Schema)
{
"properties": {
"names": {
"description": "An array of node names to retrieve",
"items": {
"description": "Node name to open",
"type": "string"
},
"type": "array"
}
},
"required": [
"names"
],
"type": "object"
}
Implementation Reference
- Executes the 'open_nodes' tool by calling openNodes on the knowledge graph manager and formatting the response.case "open_nodes": const nodes = await this.knowledgeGraphManager.openNodes(args.names); return formatToolResponse({ data: nodes, actionTaken: `Retrieved nodes: ${args.names.join(', ')}` });
- Defines the input schema for the 'open_nodes' tool: requires an object with 'names' array of strings.{ name: "open_nodes", description: "Open specific nodes in the knowledge graph by their names", inputSchema: { type: "object", properties: { names: { type: "array", items: {type: "string", description: "Node name to open"}, description: "An array of node names to retrieve", }, }, required: ["names"], }, } ];
- src/integration/tools/handlers/ToolHandlerFactory.ts:46-47 (registration)Registers 'open_nodes' tool to be handled by SearchToolHandler.if (toolName.match(/^(read_graph|search_nodes|open_nodes)$/)) { return this.searchHandler;
- src/integration/tools/registry/toolsRegistry.ts:42-45 (registration)Registers all static tools from staticTools.ts (including 'open_nodes') into the central ToolsRegistry.// Register static tools allStaticTools.forEach(tool => { this.tools.set(tool.name, tool); });