add_footnote
Add a footnote at the chosen occurrence of specified text in a Word document, creating all required note infrastructure, with automatic backup and validation.
Instructions
Add a footnote anchored after the occurrence-th match of anchor_text; creates all note infrastructure (parts, styles, superscript) if the document has none. 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 | |||