word_delete_paragraph
Remove a specific paragraph from a Word document by its index. Specify the file path and paragraph position to delete unwanted content while optionally keeping a backup.
Instructions
Delete a specific paragraph from a Word document by its 0-based index.
Args:
file_path: Path to the Word document (.docx).
paragraph_idx: 0-based index of the paragraph to delete.
backup: If True, create a backup of the original file before modifying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup | No | ||
| file_path | Yes | ||
| paragraph_idx | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |