list_categories
Lists all document categories with live document counts. Use it to see available categories and their sizes before filtering searches or document listings by category.
Instructions
List all document categories with their document counts.
Read-only. No side effects. Reflects the live index state.
Returns: JSON string with category names, document counts per category, and total document count.
Usage: Use before filtering search_knowledge() or list_documents() by category to see which categories exist and how many documents each contains. Use get_index_stats() instead for broader system health metrics (model name, cache hit rate, BM25 status).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |