count_sections
Count doc sections by filters like path glob, roles, tags, and level or size. Returns just the count, useful for UI counters and 'does anything match?' probes.
Instructions
v1.59+ — count sections matching the same filter set as search_sections (path_glob, role/roles/exclude_roles, tags/exclude_tags, min/max_level, min/max_byte_length) but skip ranking. Use for UI counters or 'does anything match?' probes. Returns the count only, never the matching sections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| role | No | ||
| tags | No | ||
| roles | No | ||
| doc_path | No | ||
| max_level | No | ||
| min_level | No | ||
| path_glob | No | ||
| exclude_tags | No | ||
| exclude_roles | No | ||
| max_byte_length | No | ||
| min_byte_length | No |