bfs
Retrieve related entities by traversing from a starting entity to a specified depth using breadth-first search.
Instructions
BFS traversal from a starting entity.
Args: start_entity_id: Entity ID to start from. max_depth: Max traversal depth (1-10).
Returns: List of (entity_id, name, type, depth) entries.
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_entity_id": "<start_entity_id>"
},
"name": "bfs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | ||
| start_entity_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |