find_replace_formatted
Replaces all occurrences of a specified text string in a document with formatted text, applying custom bold, italic, color, and font size.
Instructions
Find all occurrences of a string and replace with formatted text.
Replaces every occurrence of find across all paragraphs in the document
with replace, applying the specified character formatting to the replacement
run only.
Args: find: Text to search for (must be non-empty). replace: Replacement text. bold: True to bold, False to explicitly un-bold, None to leave unchanged. italic: True to italicise, False to explicitly un-italicise, None to leave unchanged. color: Font color as 6-digit hex (e.g. "FF0000"). None leaves color unchanged. size_pt: Font size in points (e.g. 12.0). None leaves size unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | ||
| replace | Yes | ||
| bold | No | ||
| italic | No | ||
| color | No | ||
| size_pt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |