get_document_outline
Return a document's heading structure so you can navigate large files and locate sections before extracting or editing content. Section indices align with '#N' edit targets.
Instructions
Return the heading structure (table of contents) of a document.
Use this to navigate a large document before extracting specific sections: the returned indices line up with edit_document's '#N' target notation.
Returns a dictionary with:
sections: list of {index, level, heading}
total: number of headings returned
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document to outline: file path (within read allowlist), data URI, base64, or inline content. REQUIRED. | |
| max_level | No | Deepest heading level to include, 1-6 (default: 6 = all levels). | |
| format_hint | No | Optional format hint for ambiguous/extensionless sources (e.g. 'pdf', 'docx', 'html'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||