Traverse the vault graph
traverse_graphWalk the Obsidian link graph from a starting note to discover connected notes and links. Use direction to explore forward, backward, or both, with depth and node limits for large vaults.
Instructions
Walk the link graph starting from a note. Returns nodes (notes) and edges (links) up to depth hops away. Use direction=both for a neighborhood, forward for what a note depends on, backward for what depends on it. Cap with max_nodes on large vaults.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | Yes | Vault-relative path of the starting note. | |
| depth | No | ||
| direction | No | forward = follow outgoing links; backward = follow backlinks. | both |
| max_nodes | No | ||
| include_snippets | No | If true, include a short preview snippet for each node. |