set_content_control_value
Set a Word content control's value by tag or index, supporting text, dates, checkboxes, and dropdowns. Refuses locked or unwritable controls and saves with auto-backup.
Instructions
Set one content control's value, addressed by tag or by list_content_controls index (exactly one). Text, rich-text, combo, and date controls take a string; checkboxes a boolean; dropdowns one of their options (refused otherwise, naming the options). Locked controls and unwritable types (gallery, repeating section, citation, bibliography, picture, group, equation) are refused with nothing changed. 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 |
|---|---|---|---|
| tag | No | ||
| index | No | ||
| value | Yes | ||
| backup | No | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||