style_create
Add a new paragraph, character, table, or numbering style to a Word document with custom formatting, based on existing styles, and control properties like font, size, and spacing.
Instructions
Add a style.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Style id (default: from the name). | |
| doc | Yes | Path to the .docx. | |
| run | No | Character formatting: bold, italic, small_caps, strike, underline, font, size_pt, color, highlight, vertical_align; null removes a key. | |
| link | No | Linked paragraph/character style; '' for none. | |
| name | Yes | Display name. | |
| next | No | Style of the next paragraph; '' for none. | |
| type | No | Kind of style (default paragraph). | |
| quick | No | Show in the quick-style gallery. | |
| custom | No | A user-defined (not built-in) style. | |
| expect | No | ||
| default | No | The default style of its type. | |
| dry_run | No | Preview only; write nothing. | |
| based_on | No | Parent style id or name; '' for none. | |
| paragraph | No | Paragraph formatting (twips): alignment, indent{left,right,first_line,hanging}, spacing{before,after,line,line_rule}, keep_next, keep_lines, page_break_before, outline_level; null removes a key. |