read_document_section
Read a specific section of a document by matching a heading substring. Returns content from that heading to the next heading of same or higher level, including nested subsections.
Instructions
Reads a specific section of a document identified by
heading match.
Uses case-insensitive substring matching against
headings. Returns the section content from the matched
heading up to the next heading of the same or higher
level, including all nested subsections.
Use this tool when you need to:
- Read a specific part of a large document
- Focus on one section without loading everything
- Navigate by heading name instead of line numbers
Args:
document_id: The document ID
heading: Case-insensitive substring to match
against headings (e.g. "arch" matches
"## Architecture")
Returns:
Section content with line numbers
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | ||
| heading | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |