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

    Function getNoteNeighbors

    • Return a note and its 1-hop graph neighborhood — outbound links + backlinks + tag-cluster siblings in one call.

      Designed as the canonical "give the LLM enough context to reason about this note" call. Pre-fix, the agent had to chain 4 round-trips (read_noteget_backlinksget_outbound_linksresolve_wikilink × N). This collapses them into one structured graph view at the cost of a full vault scan.

      Parameters

      • vault: Vault

        The vault.

      • args: { max_per_bucket?: number; path?: string; title?: string }

        One of path or title is required. max_per_bucket caps each bucket independently (default 20).

      Returns Promise<NoteNeighbors>

      A NoteNeighbors with center + 3 sorted neighbor buckets.

      If the target can't be resolved.

      const ctx = await getNoteNeighbors(vault, {
      path: "Concepts/Hybrid Retrieval.md",
      max_per_bucket: 10
      });
      console.log("Linked from:", ctx.inbound.length, "notes");
      console.log("Tag siblings:", ctx.tag_siblings.map(s => s.title));