Find shortest wikilink path between two notes
obsidian_find_pathFinds the shortest path between two notes by traversing wikilinks in an Obsidian vault. Returns the sequence of notes with optional alternative paths and embed following.
Instructions
Multi-hop graph traversal: BFS from from to to over the wikilink graph, returning the shortest path (sequence of notes connected by wikilinks) up to max_depth hops. Each step in the returned path carries the wikilink text used to traverse to it. With include_alternatives=true, returns up to 10 same-length paths so the agent can compare. Embeds (![[…]]) are followed by default; pass follow_embeds=false to skip them. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Vault-relative path of the source note | |
| from_title | No | Source note title (alternative to `from`) | |
| to | No | Vault-relative path of the destination note | |
| to_title | No | Destination note title (alternative to `to`) | |
| max_depth | No | Maximum BFS depth (default 5). Each hop is one wikilink edge. | |
| include_alternatives | No | Return up to 10 same-length alternative paths (default false) | |
| follow_embeds | No | Treat ![[embeds]] as graph edges (default true) |