get_paragraph_format
Read effective paragraph formatting for body paragraphs, resolving explicit settings, style inheritance, and document defaults. Reports alignment, spacing, indents, line spacing, and other flags with their source.
Instructions
Read EFFECTIVE paragraph formatting for body paragraphs start..end (inclusive; end defaults to start): alignment, space_before_pt, space_after_pt, line_spacing, indent_left_pt, indent_right_pt, first_line_indent_pt (negative = hanging), keep_with_next, widow_control, page_break_before. Resolution follows Word (own properties, then the style basedOn chain, then document defaults); every property reports value AND source ('explicit' | 'paragraph_style' | 'document_defaults' | 'word_default'), mirroring find_formatted's matched_via, so direct overrides and style inheritance are distinguishable. line_spacing carries its rule ('auto' = multiple; 'exact'/'atLeast' = points). Numbering-contributed indents are not resolved (flagged has_numbering). set_paragraph_format takes the same keys. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| start | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||