get_document_outline
Extract a read-only structural outline of DOCX headings, with paragraph IDs, text, levels, and sources; optionally include heuristic headings.
Instructions
Get a compact structural map of a document's headings (DOCX only). Each entry is {paragraph_id, text, level, source}. Deterministic sources are word_style, list_metadata, and outline_level, selected in that precedence order and included by default. Heuristic sources are run_in_header, title_with_period, title_with_colon, title_caps_centered, and title_bare; set include_heuristic_headings=true to include them. JSON preserves levels 1-9; Markdown clamps visual ATX depth to 6. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: 'json' (default, structured outline array) or 'markdown' (indented ATX outline under `content`). | |
| file_path | No | Path to the DOCX file. | |
| include_heuristic_headings | No | When true, also include heuristic title/run-in/centered-caps headings alongside deterministic word_style, list_metadata, and outline_level headings. Default: false (all deterministic sources only). |