cleanup_orphan_notes
Removes orphaned footnote and endnote definitions that have no body reference, cleaning up Word documents. Use this when documents contain leftover notes with no in-text citations.
Instructions
Remove footnote/endnote definitions no body reference points to. Content-deleting tools already do this automatically; use this for documents that arrived with orphans. 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||