edit_docx_paragraph
Replace a specific paragraph in a DOCX file by its index with new text. Optionally save to a different path.
Instructions
Edit a paragraph in an existing DOCX file by index
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>",
"new_text": "<new_text>"
},
"name": "edit_docx_paragraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Paragraph index (0-based) | |
| new_text | Yes | New text for the paragraph | |
| 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 |