get_section_excerpt
Preview a documentation section's content with a short excerpt to decide if full retrieval is needed, reducing token usage.
Instructions
v1.41+ — return a short content preview (default 500 bytes) for one section. Trimmed to last newline before the cap so it ends on a paragraph boundary. Use to peek at content before paying for a full get_section read. _meta.tokens_saved reports the byte-savings vs full content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier (owner/repo or just repo name) | |
| section_id | Yes | Target section ID | |
| max_bytes | No | Soft cap on excerpt size in UTF-8 bytes. Default 500. |