find_path
Find the shortest path between two items in a knowledge graph. Traverses edges up to a set depth and returns the ordered list of item IDs and edge types.
Instructions
Find the shortest path between two items in your knowledge graph. Traverses knowledge_edges up to max_depth hops and returns the ordered list of item IDs and edge types along the path, or "no path found" if disconnected.
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": {
"item_a": "<item_a>",
"item_b": "<item_b>"
},
"name": "find_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_a | Yes | UUID of the start item | |
| item_b | Yes | UUID of the end item | |
| max_depth | No | Maximum path length to search (default 5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | Yes | ||
| path_length | Yes | ||
| path_item_ids | Yes | ||
| path_edge_types | Yes |