apply_character_style
Apply a named character style to a specific occurrence of text in a Word document. Safely backs up changes before saving.
Instructions
Apply a named character style to a text range (occurrence-th match of find). For direct formatting without a style, use format_text. 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 |
|---|---|---|---|
| find | Yes | ||
| style | Yes | ||
| backup | No | ||
| file_path | Yes | ||
| occurrence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||