get_document_outline
Extracts headings from a Word document to create a structured outline, returning each heading's level, text, and paragraph ID.
Instructions
Return a flat list of headings as a document outline.
Walks the document body and returns every heading paragraph up to the specified level.
Args: max_level: Maximum heading level to include (1–6, default 6).
Returns: JSON list of dicts with keys: level (int), text (str), para_id (str).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_level | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |