count_sections
Count documentation sections that match specified filters (path, role, tags, level, size) and return only the number, not content. Use for UI counters or to check whether any sections match.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>"
},
"name": "count_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 |