Create Relationship
create_relationshipConnect two related memories by adding a typed relationship, creating a knowledge graph edge that enables structured navigation and retrieval.
Instructions
Link two memories with a typed relationship. Creates a knowledge graph edge between memories.
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_hash": "<from_hash>",
"to_hash": "<to_hash>",
"relation_type": "<relation_type>"
},
"name": "create_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_hash | Yes | SHA-256 hash of the target memory | |
| from_hash | Yes | SHA-256 hash of the source memory | |
| relation_type | Yes | Type of relationship (e.g., "related_to", "causes", "depends_on", "part_of", "follows") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |