kg_paths
Find all connection paths between two notes in the knowledge library, ranked by length up to a maximum number of hops.
Instructions
Find connection paths between two knowledge library notes via BFS.
Args:
from_path: Relative path from knowledge/library/ (e.g. 'concepts/elimination-framework.md')
to_path: Target note path.
max_hops: Maximum path length (default 4).
Returns all paths found up to max_hops, ranked by length.
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": {
"from_path": "<from_path>",
"to_path": "<to_path>"
},
"name": "kg_paths"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_path | Yes | ||
| to_path | Yes | ||
| max_hops | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |