get_section_excerpts
Fetch previews for multiple documentation sections in one batch call against a single index load, with per-id error reporting and aggregated token savings.
Instructions
v1.49+ — batch counterpart to get_section_excerpt. Resolves N previews in one call against a single index load. Per-id errors reported in-line. _meta.tokens_saved aggregates byte savings across the batch. Previews are truncated by design; read full content with get_sections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier | |
| max_bytes | No | Per-section soft cap in UTF-8 bytes. | |
| section_ids | Yes | List of section IDs. Order preserved; each entry carries `requested_id` for correlation. v1.147+ — an entry may be a `doc.md#anchor` reference; an ambiguous one sets `anchor_ambiguous`, `anchor_scope`, `anchor_match_count`, `anchor_candidates` (at most 20), `anchor_candidates_truncated` and `warning` on its entry and at top level. |