format_text
Apply character formatting or change case to selected text in Word documents using a range or search query. Supports bold, italic, color, highlight, small caps, and more, with automatic backup.
Instructions
Apply character formatting or change case on a text range. formatting: bold, italic, underline, strike, font, size_pt, color, highlight, small_caps, char_spacing_pt, language, east_asian_language, and more. case: upper | lower | title | sentence. Target: range={start,end}, find, or both; one of formatting or case per call. Auto-backup in file mode (backup=False skips rotation); atomic validated save. Formatting goes live on open documents (serialized); case is file-mode only. For batches, use apply_edits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case | No | ||
| find | No | ||
| live | No | auto | |
| range | No | ||
| backup | No | ||
| file_path | Yes | ||
| formatting | No | ||
| occurrence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||