add_hyperlink
Locate a specific text occurrence in a Word file and convert it into an external hyperlink, with optional backup before an atomic validated save.
Instructions
Turn existing text (occurrence-th match of anchor_text) into an external hyperlink. 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 |
|---|---|---|---|
| url | Yes | ||
| backup | No | ||
| file_path | Yes | ||
| occurrence | No | ||
| anchor_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||