add_bookmark
Bookmark a specific text range in a Word document to act as a cross-reference target. Includes auto-backup and atomic validated saving, and refuses files open in Word.
Instructions
Bookmark a text range (the target add_cross_reference points at). 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 |
|---|---|---|---|
| name | Yes | ||
| backup | No | ||
| file_path | Yes | ||
| occurrence | No | ||
| anchor_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||