set_hwp_paragraph_text
Replace the text of a specific paragraph in an HWPX file while preserving its formatting and attributes.
Instructions
Replace the entire text of the Nth paragraph (0-based) in an .hwpx body with new text. The paragraph attributes (paraPr/style refs) are preserved; runs are collapsed into a single hp:run with the new text. Args: file_path, index, text, output_path (optional).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| index | Yes | ||
| text | Yes | ||
| output_path | No |