enquire-mcp API reference - v4.0.0-rc.7
    Preparing search index...

    Function listTags

    • Build a tag-frequency dashboard for the vault.

      Aggregates per-note tag presence from frontmatter (tags: [foo, bar]) and inline (#foo in body). A note contributes at most once to a tag; when both sources contain it the note is credited to frontmatter. Sorted by document frequency descending, tied alphabetically.

      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.

      • OptionallimitOverrides: Partial<ListTagLimits>

        Test-only stricter resource limits. Values cannot raise production ceilings.

      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}`);