word_create_custom_style
Creates a new custom paragraph style in a Word document, allowing specification of font, size, color, bold, italic, and base style.
Instructions
Create a new custom paragraph style in a Word document's styles.xml
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | Set bold in the style's run properties | |
| color | No | Text color as hex RGB, e.g. 'FF0000' | |
| italic | No | Set italic in the style's run properties | |
| style_id | Yes | Machine identifier for the new style, e.g. 'MyStyle' | |
| file_path | Yes | Absolute path to the .docx file | |
| font_name | No | Font family name, e.g. 'Arial' | |
| font_size | No | Font size in points | |
| style_name | Yes | Human-readable style name shown in Word, e.g. 'My Style' | |
| base_style_name | No | Name of an existing style to base this one on, e.g. 'Normal' |