Walk the graph
graph_walkTraverse code graph edges from selected nodes to trace dependencies, definitions, dependents, or references, returning traversal depth and file:line citations for each result.
Instructions
Operator 2 (walk): traverse edges from a set of nodes with a recursive CTE (cycle-safe, depth capped). Direction out = dependencies/definitions, in = dependents/references. Each node returns its traversal depth and a path:line citation.
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": "<start>"
},
"name": "graph_walk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| start | Yes | Node ids or keys, as returned by graph_find. | |
| edgeType | No | Edge types to follow. Defaults to all. | |
| maxDepth | No | Default 6. | |
| direction | No | Default "out". |