addNode
Add a node to a semantic knowledge graph to model business logic, code relationships, and project structure. Provide a unique ID, type, name, and description to create the node.
Instructions
Add a new node to the knowledge graph
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"type": "<type>",
"name": "<name>",
"description": "<description>"
},
"name": "addNode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | 节点唯一标识符(kebab-case) | |
| name | Yes | 节点显示名称 | |
| tags | No | 节点标签 | |
| type | Yes | 节点类型 | |
| files | No | 关联的文件路径 | |
| metadata | No | 自定义元数据 | |
| projectId | No | 项目 ID(可选,默认使用当前项目) | |
| description | Yes | 节点语义描述 |