set_header
Set header text for Word document sections, with options for first/even pages, alignment, and automatic backup. Safely saves changes and prevents editing documents open in Word.
Instructions
Set a section's header text. ref_type: default | first | even. Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| backup | No | ||
| section | No | ||
| ref_type | No | default | |
| alignment | No | center | |
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||