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).
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": {
"path": "<path>"
},
"name": "get_links"
}
}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. |