add_cross_reference
Insert a cross-reference field after specified anchor text in a Word document, choosing page number or bookmarked text as the reference. Word automatically computes the value on field update.
Instructions
Insert a cross-reference field after anchor text. kind: 'page' (page number) or 'text' (the bookmarked text); Word computes the value on field update. 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 |
|---|---|---|---|
| kind | No | page | |
| backup | No | ||
| file_path | Yes | ||
| to_bookmark | Yes | ||
| after_anchor | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||