Broken Links
get_broken_linksFind broken links in your Markdown vault by identifying references to missing, renamed, or unindexed documents, so you can fix or update them.
Instructions
Find all links that point to non-existent documents (broken links).
Use this to audit link health across the vault. Call this when 'stats' shows broken_link_count > 0, or after a 'rename' that did not use update_links=True, to see what links were left pointing to the old path. A broken link means the target path does not match any indexed document — the referenced note may have been deleted, renamed, or never created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Optional folder filter. When provided, only checks links from documents in this folder (e.g. "Journal"). Use folder="" for root-level (top-level) documents only. Without this, checks all documents. | |
| wait_for_pending_writes | No | Wait for recent index writes. On timeout, answer from the current index with _meta.index_stale=true. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |