add_endnote
Insert an endnote after a specified text anchor in a Word document, with automatic backup and safe atomic saving. Refuses to modify documents currently open in Word.
Instructions
Add an endnote anchored after anchor_text (same mechanics as add_footnote). 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 |
|---|---|---|---|
| backup | No | ||
| file_path | Yes | ||
| note_text | Yes | ||
| occurrence | No | ||
| anchor_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||