akb_drill_down
Retrieve section-level content from a document using heading or body pattern filters, or list section headings to explore document structure.
Instructions
Read section-level (L3) content of a document, or list its section headings. Two modes:
mode='sections'(default): return body content of matched sections. Filter withsection(heading substring) and/orpattern(substring grep on body). On empty match the response carries anoutlineso you can retry.mode='outline': return heading paths only (no bodies). Use this to discover the document's structure cheaply before deciding which section to read. Returns {uri, sections|outline, returned, total?, truncated?, hint?}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | Document URI | |
| mode | No | 'sections' for body content, 'outline' for heading paths only. | sections |
| section | No | Section heading filter (partial match). Used in `sections` mode. | |
| pattern | No | Substring grep inside matched section bodies (case-insensitive). Used in `sections` mode. |