delete_paragraphs
Remove specified paragraphs or table blocks from a Word document by their indices, with optional tracked changes to record deletions.
Instructions
Delete multiple paragraphs or table blocks by their indices in one operation. Handles index reordering internally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .docx file | |
| paragraph_indices | Yes | Array of block indices to delete | |
| track_changes | No | Record deletions as tracked changes instead of removing the paragraphs. Default true. | |
| author | No | Author name for tracked changes | Claude |
| allow_untracked_edit | No | Capability flag required to disable tracked changes. When track_changes is false, this must also be true or the call fails with UNTRACKED_EDIT_NOT_ALLOWED. Default false. This is a safety guard against prompt injection or long-context drift in regulated-industry use — silent edits to legal/regulated documents must be opted into with two independent flags. |