twining_neighbors
Traverse the knowledge graph from any entity to discover connected neighbors up to three levels deep, with optional relation type filtering for targeted exploration.
Instructions
Traverse the knowledge graph from an entity, returning neighbors up to a given depth (max 3). Supports filtering by relation type. Useful for understanding how entities connect.
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": {
"entity": "<entity>"
},
"name": "twining_neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Traversal depth (1-3, default: 1) | |
| entity | Yes | Entity ID or name to start traversal from | |
| relation_types | No | Filter to only these relation types |