linkNodes
Creates a typed relationship between two nodes to map dependencies, flows, and triggers within a project's knowledge graph.
Instructions
Create a relationship between two nodes
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": {
"from": "<from>",
"to": "<to>",
"type": "<type>"
},
"name": "linkNodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 目标节点 ID | |
| from | Yes | 源节点 ID | |
| type | Yes | 关系类型 | |
| metadata | No | 自定义元数据 | |
| strength | No | 关系强度 (0-1) | |
| projectId | No | 项目 ID(可选,默认使用当前项目) | |
| description | No | 关系描述 |