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

    Function getBacklinks

    • Find every note that links to the target — the "who references this?" query.

      Scans the full vault, so cost is O(N notes × parse). Use getNoteNeighbors if you also need outbound links + tag siblings in one call. Sorted by count desc (most-linking notes first).

      Parameters

      • vault: Vault

        The vault to search.

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

        One of path or title is required to identify the target. limit defaults to 50. include_embeds defaults to true — set false to count only [[wikilinks]] and skip ![[embeds]].

      Returns Promise<BacklinkHit[]>

      A BacklinkHit array sorted by count desc.

      If the target can't be resolved.

      const backlinks = await getBacklinks(vault, {
      path: "Concepts/Vector Embeddings.md",
      limit: 25
      });
      for (const b of backlinks) {
      console.log(`${b.path} links ${b.count}x:`, b.snippets);
      }