insert_docx_paragraph
Insert a new paragraph at a specified position in a DOCX document, with optional style and output file path.
Instructions
Insert a new paragraph at a specific position in a DOCX file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text for the new paragraph | |
| index | Yes | Position to insert at (0-based) | |
| style | No | Paragraph style (e.g. 'Normal', 'Heading 1') | Normal |
| file_path | Yes | Absolute path to the .docx file | |
| output_path | No | Save to different path (omit to overwrite) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |