office_format_tool
Formats existing text in DOCX, XLSX, PPTX, ODT, ODS, or ODP files by applying font, size, color, fill, bold, italic, underline, or paragraph styles, then reloads the file in the editor.
Instructions
Format existing text and reload the file in the editor.
Works for docx, xlsx, pptx, odt, ods, and odp. path is workspace-relative. text is the exact phrase. font is a family such as Calibri. size is points, such as 14. color and fill are RRGGBB. style is a named paragraph style such as Heading 1, and is available for docx and odt. Omit a property to leave it unchanged. Bold, italic, color, font, and size apply to each match. fill shades a paragraph only when that paragraph's whole text is the phrase. Do not unzip the file or rewrite its XML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | ||
| fill | No | ||
| font | No | ||
| path | Yes | ||
| size | No | ||
| text | Yes | ||
| color | No | ||
| style | No | ||
| italic | No | ||
| underline | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |