add_section
Add a heading and body content as a new section to an existing Word document. The document is updated in place.
Instructions
Append a new section (heading + body content) to the end of an existing .docx document. The document is updated in place.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the existing .docx file | |
| heading | Yes | Section heading text | |
| content | Yes | Section body content (markdown supported) | |
| headingLevel | No | Heading level: 1 = H1 (largest) through 6 = H6 (smallest). Default: 2 |