insert_section_break
Insert a tracked DOCX section break after a stable body paragraph while preserving page setup and header/footer links; re-fetch sections afterward because indexes change.
Instructions
Insert a tracked DOCX section break after a stable direct-body paragraph. The new boundary preserves the containing section’s page setup and header/footer relationship references. The following section inherits current properties by default; set inherit_properties=false to reset non-relationship properties, and optionally provide page-number/page-size/margin overrides in new_section. Call get_sections again after success because section indexes change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Path to the DOCX or ODT file. | |
| break_type | Yes | OOXML start behavior for the following section. | |
| new_section | No | Optional page-number and page-setup overrides for the following section. Complete page size/margins are required when reset removes those elements. | |
| paragraph_id | Yes | Stable paragraph id returned by read_file; must identify a direct main-body paragraph that does not already end a section. | |
| inherit_properties | No | Whether the following section retains current non-relationship properties. Default: true. Header/footer references are always preserved. |