get_links
Resolve outbound wikilinks, unresolved links, and backlinks for a note. Traverse related knowledge and optionally get linking line context.
Instructions
Resolve the Obsidian link graph for a note: outbound [[wikilinks]] resolved to real notes, links that resolve to nothing, and backlinks (other notes that link to this one). Use it to traverse related knowledge. With include_context: true, every row gains the linking line(s) — 'who references this note, and why' in one call (see the link-context convention).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Note path (.md optional) | |
| include_context | No | Decorate every link row with the source line(s) containing it, as { line, text }. Call-time file reads — leave off (default) when only the paths are needed. |