get_section
Retrieve the full content of a specific section using byte-range reads. Use after identifying section IDs via search_sections or get_toc. Returns this section's own bytes; nested child sections are not included.
Instructions
Retrieve the full content of a specific section using byte-range reads. Use after identifying section IDs via search_sections or get_toc. Returns this section's own bytes; nested child sections are not included. A section with text_source="ocr" was read from a scanned page by OCR: its text may contain errors, and tables or forms in it may be scrambled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier | |
| verify | No | Verify content hash matches stored hash (detects source drift) | |
| section_id | Yes | Section ID from get_toc, search_sections, or get_document_outline. v1.147+ — also accepts a `doc.md#anchor` reference to a heading written with an explicit `{#id}`; an ambiguous reference sets `anchor_ambiguous`, `anchor_scope`, `anchor_match_count` (uncapped), `sections` (bodies for the first 5 matches only), `sections_truncated`, `anchor_candidates` (at most 20), `anchor_candidates_truncated` and `warning`. | |
| compress_code | No | v1.35+ — when true, drop blank lines and full-line comments inside fenced code blocks before returning. _meta.code_compressed_bytes reports bytes saved. | |
| strip_boilerplate | No | v1.24+ — when true, suppress repeated cross-section fragments (footers, nav, license headers) before returning content. |