Show the structure of all three pitakas with coverage statistics.
💡 **Use this tool when:**
- The user asks for an overview of the Tipiṭaka (what's in it / which
collections).
- You need to check coverage before promising a search will find
something — `segment_count > 0` is the active-loaded signal.
- Verifying scope when compiling an artifact.
📊 **Current state (v1.1+, at parity with SuttaCentral bilara-data):**
- **Sutta Piṭaka** complete: DN 37, MN 155, SN 1,829, AN 1,419, KN
2,351 sections (~284,702 segments) — Pāli + Sujato EN
- **Vinaya Piṭaka** complete: Bhikkhu Vibhaṅga 222, Bhikkhunī Vibhaṅga
127, Khandhaka 22, Parivāra 51 + Pātimokkha 2 (~71,557 segments) —
Pāli + Brahmali EN
- **Abhidhamma Piṭaka** complete: 7 books (ds, vb, dt, pp, kv, ya,
patthana) ~88,414 segments — Pāli only (bilara has no English for
any Abhidhamma book)
- **Total ~444,673 segments** in the DB
⚠️ **Known quirks:**
- The schema carries duplicate legacy + SC-modern codes side by side:
- Vinaya: `vin-v/vin-m/vin-c/vin-p` (legacy, segment_count = 0)
alongside `pli-tv-bu-vb/pli-tv-bi-vb/pli-tv-kd/pli-tv-pvr`
(active, populated).
- Abhidhamma: `ym/pt` (legacy = 0) alongside `ya/patthana` (active).
- **Always pick the code with `segment_count > 0`** — the others are
metadata placeholders from an older migration.
🌐 **Languages:** Returns Pāli + Thai + English labels regardless of
enabled set (these are metadata, not segment text). Text content
follows ENABLED_LANGUAGES. Thai translations aren't loaded yet —
Thai users can fall back to the cross_reference 84000.org link.
Returns:
Hierarchical structure:
- pitakas{vinaya/sutta/abhidhamma} → nikayas[]
- Each nikaya: code, name (3 languages), sutta_count, segment_count.