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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"index": "<index>",
"text": "<text>"
},
"name": "insert_docx_paragraph"
}
}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 |