delete_docx_paragraph
Delete a paragraph from a DOCX file using its index. Enables precise removal of content from Word documents without affecting other sections.
Instructions
Delete a paragraph from a 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>"
},
"name": "delete_docx_paragraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Paragraph index to delete (0-based) | |
| 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 |