enquire-mcp API reference - v3.9.0-rc.4
    Preparing search index...

    Function getUnresolvedWikilinks

    • Find every wikilink in the vault that doesn't resolve to a real file — the "broken links" report.

      Useful for housekeeping: detecting moved/deleted notes, typos, or orphaned [[Future Note]] placeholders. Cost is O(N notes × outbound).

      Parameters

      • vault: Vault

        The vault to scan.

      • args: { folder?: string; include_embeds?: boolean; limit?: number }

        All optional. folder restricts the source scan (broken links are still resolved against the full vault). include_embeds defaults to true. limit defaults to 200 — early-exits on hit count.

      Returns Promise<UnresolvedWikilink[]>

      Sorted in scan order (mtime desc per vault.listMarkdown).

      If folder resolves outside the vault.

      const broken = await getUnresolvedWikilinks(vault, { limit: 50 });
      for (const b of broken) {
      console.log(`${b.from_path}:${b.line} → [[${b.target}]]`);
      }