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

    Function listTags

    • Build a tag-frequency dashboard for the vault.

      Aggregates every tag from both frontmatter (tags: [foo, bar]) and inline (#foo in body) across all notes. Sorted by count descending, tied by alphabetical. Cheap — single pass with the parser cache.

      Parameters

      • vault: Vault

        The vault.

      • args: { folder?: string; limit?: number; min_count?: number }

        All optional. folder restricts the scan. min_count filters tags below a threshold (default 1, i.e. include everything). limit defaults to 200.

      Returns Promise<TagSummary[]>

      Sorted TagSummary array.

      If folder resolves outside the vault.

      const top = await listTags(vault, { min_count: 5, limit: 30 });
      for (const t of top) console.log(`#${t.tag}: ${t.count}`);