set_paragraph_format
Set paragraph formatting (alignment, spacing, indents, outline level) for a batch of paragraphs selected by indices or a start/end range in Word documents, with auto backup and atomic validated save.
Instructions
Set paragraph formatting on a batch: indices (0-based list) OR start/end (inclusive range), exactly one form. Keys: alignment, space_before_pt, space_after_pt, line_spacing, indent_left_pt, indent_right_pt, first_line_indent_pt, keep_with_next, outline_level. outline_level (0-8; null removes) never changes the look; it is off by one from heading_level 1-9. Auto-backup; atomic validated save. Open documents edited live (serialized; shading/borders/tab_stops refused live). For batches, use apply_edits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| live | No | auto | |
| start | No | ||
| backup | No | ||
| indices | No | ||
| file_path | Yes | ||
| formatting | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||