delete_nodes
Remove multiple nodes and their connected edges from the MemoryMesh knowledge graph by specifying node names to streamline graph management and maintain data integrity.
Instructions
Delete multiple nodes and their associated edges from the knowledge graph
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeNames | Yes | An array of node names to delete |
Implementation Reference
- The handler logic for the 'delete_nodes' tool in GraphToolHandler.handleTool switch statement. It delegates deletion to knowledgeGraphManager and returns a formatted response confirming the action.case "delete_nodes": await this.knowledgeGraphManager.deleteNodes(args.nodeNames); return formatToolResponse({ actionTaken: `Deleted nodes: ${args.nodeNames.join(', ')}` });
- The tool definition including name, description, and input schema for validating arguments to the 'delete_nodes' tool.{ name: "delete_nodes", description: "Delete multiple nodes and their associated edges from the knowledge graph", inputSchema: { type: "object", properties: { nodeNames: { type: "array", items: {type: "string", description: "Node name to delete"}, description: "An array of node names to delete" }, }, required: ["nodeNames"], }, },