insert_index
Insert an index field into Word documents, compiling all XE entries with page numbers when fields update. Automatically backs up files and refuses open documents.
Instructions
Insert the INDEX field compiling all XE entries with page numbers (generated when Word updates fields). 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 |
|---|---|---|---|
| title | No | Index | |
| at_end | No | ||
| backup | No | ||
| columns | No | ||
| file_path | Yes | ||
| after_index | No | ||
| update_on_open | No | ||
| letter_headings | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||