delete_paragraphs
Delete a range of paragraphs from a Word document by start and end index, preserving document integrity with safety checks. Supports tracked deletions, auto-backup, and live editing.
Instructions
Delete body paragraphs start..end (0-based, INCLUSIVE; end defaults to
start). Refuses ranges that cut through a field or carry a section
break. Deleting every paragraph leaves one empty paragraph behind (a
document always keeps one). track marks tracked deletions by author
instead of removing (result key deleted_tracked). Auto-backup in file
mode: prev/anchor slots in .ks4w-backups (backup=False skips rotation
only); atomic validated save. Documents open in Word are edited live.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| live | No | auto | |
| start | Yes | ||
| track | No | ||
| author | No | Claude | |
| backup | No | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||