Get Link Graph
links.graphBuild a complete link graph of an Obsidian vault: every note becomes a node with path and title, every outbound link becomes a directed edge with source, target, and link kind. Returns nodes, edges, and stats for the entire vault.
Instructions
Build a full vault link graph: every note becomes a node, every outbound link becomes a directed edge. Return shape is {nodes, edges, stats} where nodes carry basic metadata (path, title) and edges carry source/target and link kind. Expensive for large vaults — prefer links.backlinks, links.outgoing, or links.connections for targeted queries. Read-only.
Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vaultPath | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||