get_section_context
Retrieve a documentation section with its full hierarchy context: ancestor headings, target content, and child summaries — prevents thin sections without reading entire files.
Instructions
Retrieve a section with its full hierarchy context: ancestor headings (root → parent) for orientation, the target section's content, and immediate child summaries. Prevents 'section too thin' without falling back to whole-file reads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier (owner/repo or just repo name) | |
| section_id | Yes | Target section ID from get_toc, search_sections, etc. | |
| max_tokens | No | Approximate token budget for the target section's content (bytes/4 estimate). Ancestors and child summaries are always included. | |
| include_children | No | Include immediate child section summaries (no content reads). Default true. | |
| include_related | No | v1.20+ adaptive context: append structural + semantic neighbor summaries. | |
| strip_boilerplate | No | v1.24+ — strip repeated cross-section fragments before returning the target section content. |