traverse
Start from an entity and retrieve all connected entities within a configurable number of hops (1-3) in a knowledge graph.
Instructions
Traverse the graph from a starting node, returning all entities within N hops.
Args: start_node: Entity name to start from depth: Number of hops to traverse (default 1, max 3)
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": {
"start_node": "<start_node>"
},
"name": "traverse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| start_node | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |