Get Relationships
get_relationshipsRetrieve linked memories and relationship types for a memory, filter by direction. Explore knowledge graph connections.
Instructions
Get all relationships for a memory. Returns linked memories with relationship types.
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": {
"hash": "<hash>"
},
"name": "get_relationships"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | SHA-256 hash of the memory to get relationships for | |
| direction | No | Direction: outgoing (from this memory), incoming (to this memory), both (default) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |