Get Outgoing Links
vault_get_outgoing_linksRetrieve all outgoing links from a note, including wikilinks and markdown links. Each link shows whether the target exists, helping identify broken links.
Instructions
Find all notes a given note links to via outgoing [[wikilinks]] or markdown. Each entry has an exists flag — false marks a broken link (target not in the vault). Both link styles are captured; links inside code blocks are ignored, and a note that links to itself appears in its own outgoing links.
Example: vault_get_outgoing_links({ path: "Projects/vault-cortex.md" })
When to use: Seeing what a note references, navigating the graph forward, or finding broken links in one note. For incoming links (what links TO a note), use vault_get_backlinks.
Parameters:
path must be the exact vault-relative path — case-sensitive, including the .md extension.
Errors:
A note with no outbound links, or a path not in the index, returns an empty array (count 0), not an error.
Returns: JSON with path (the queried note), outgoing_links (array of { path, title, exists }, sorted by target path), and count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path to the note |