Get Outgoing Links
vault_get_outgoing_linksRetrieve all outgoing wiki and markdown links from a note, including asset links and broken link detection, to audit dependencies or navigate the vault graph forward.
Instructions
Find all notes and assets a given note links to via outgoing [[wikilinks]] or markdown. Links inside code blocks are ignored; self-links are included.
Example: vault_get_outgoing_links({ path: "Projects/vault-cortex.md" })
When to use: Navigating the graph forward, auditing broken links in one note, or checking dependencies before editing. For incoming links (what links TO a note), use vault_get_backlinks.
Parameters:
path is matched against the search index, so the note must be indexed (file watcher processes new/moved files within seconds). A path not in the index returns an empty result (count 0), not an error — indistinguishable from a note with no outbound links.
Returns: JSON with path, outgoing_links (array of { path, title, exists, kind, bytes } sorted by target path), and count. Each link carries exists (boolean) and kind ("note"|"asset"): exists+note = readable via vault_read_note; exists+asset = non-markdown file (.canvas, image, PDF); !exists+note = broken link. bytes is null for broken links and assets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Exact vault-relative path including .md extension (e.g. "Projects/vault-cortex.md"). Case-sensitive. |