set_formatting
Apply bold, italic, underline, or color formatting to specific text within a paragraph while tracking changes as revisions for document review.
Instructions
Apply character formatting to text with tracked-change markup.
Finds the text within the paragraph, splits the run if needed, and applies formatting with rPrChange so it appears as a format revision in Word.
Args: para_id: paraId of the target paragraph. text: Exact text to format. bold: Apply bold formatting. italic: Apply italic formatting. underline: Underline style (e.g., "single", "double"). Empty = no underline. color: Font color as hex (e.g., "FF0000"). Empty = no color change. author: Author name for the revision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| para_id | Yes | ||
| text | Yes | ||
| bold | No | ||
| italic | No | ||
| underline | No | ||
| color | No | ||
| author | No | Claude |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |