cg_link
Creates a directed semantic relationship between two memory nodes and records it in both the SQLite edge table and source file frontmatter, enabling traceable knowledge graph connections.
Instructions
在两个记忆节点之间建立有向语义关系(同时写入 SQLite 边表与源文件 frontmatter)。
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": {
"sourceId": "<sourceId>",
"targetId": "<targetId>"
},
"name": "cg_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weight | No | 边权重,默认 1.0 | |
| relation | No | 关系类型,如 related_to、supports、derived_from、depends_on | |
| sourceId | Yes | 源节点 ID | |
| targetId | Yes | 目标节点 ID |