add_comment
Add threaded comments to a text range in Word documents, creating comment infrastructure automatically with safe atomic saves and backups. Blocks modifications to files currently open in Word.
Instructions
Add a comment on a text range (threaded-comment infrastructure created as needed). 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 |
|---|---|---|---|
| text | Yes | ||
| author | No | Claude | |
| backup | No | ||
| file_path | Yes | ||
| occurrence | No | ||
| anchor_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||