add_node
Add nodes to knowledge graphs for organizing components, events, requirements, or concepts. Supports multiple graph types including topology, timelines, and knowledge bases.
Instructions
Add a node to the knowledge graph. Nodes are the basic units of the graph, and different types of graphs support different types of nodes. Use cases:
Create component or module nodes in topology graphs
Add event or decision nodes in timeline graphs
Create requirement or feature nodes in requirement documents
Build concept hierarchies in knowledge bases
Usage recommendations:
First create the graph using create_graph
Select the appropriate node type based on graph type
Provide meaningful names and descriptions
Link related files when applicable
Add metadata for additional structured information
Return data:
data: Created node information
id: Node ID
type: Node type
name: Node name
description: Node description
createdAt: Creation time
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graphId | Yes | ||
| type | Yes | Node type. Topology graph:component/module/service/data/api/concept/resource, Timeline graph:event/decision/iteration/person, Changelog:change/feature/component/iteration/person, Requirement doc:requirement/feature/component/iteration/person/decision | |
| name | Yes | ||
| description | No | ||
| filePath | No | ||
| metadata | No |