Get Outline
get_outlineList every heading with paragraph index and level, including style and outlineLvl overrides. Optionally detect formatted headings as inferred candidates with confidence scores.
Instructions
List every heading with its paragraph index and level. Detects Heading styles AND w:outlineLvl overrides (direct or style-inherited); detected_via names which. detect_formatted=True adds a heuristic scan for direct-formatted headings (short bold, italic or centered; numbered captions excluded): CANDIDATES with an INFERRED level and a confidence. Detecting nothing returns a note plus flat structure counts. The indices feed the location object's paragraph and outline selectors. Read-only. TOC building: academic pack.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | auto: file or live; force: live; off: refuse | auto |
| file_path | Yes | ||
| detect_formatted | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |