get_headings
Get the complete heading structure of a Word document, including levels, text, and paragraph IDs for precise editing and navigation.
Instructions
Get the document heading structure with levels, text, and paraIds.
Returns a list of headings in document order, each with:
level (1-9)
text (heading content)
style (e.g., "Heading1")
paraId (unique paragraph identifier for targeting edits)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_handle | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |