query_graph
Traverse the knowledge graph from an entity using BFS to collect connected entities and memories within a specified number of hops.
Instructions
Multi-hop graph traversal from an entity. Performs BFS traversal of the knowledge graph starting from the given entity, collecting all connected entities and memories within max_hops hops. Requires storage adapter with graph capability.
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_text": "<entity_text>"
},
"name": "query_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum memories to return (default 20, max 100) | |
| max_hops | No | Maximum traversal depth (default 2, max 5) | |
| entity_text | Yes | The starting entity text to traverse from |