Write DOCX styles
write_styles_to_docxApply paragraph and section styles to an existing .docx file. Overwrites conflicting style names with incoming definitions.
Instructions
Union paragraph style definitions onto an existing .docx file. The target file must already exist — call write_contents_to_docx first. Incoming styles win on name conflict. Pass a StyleProfile dict with paragraph_styles and optional section from get_styles_from_docx batches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to an existing .docx file. Provided by the MCP client. File must exist (call write_contents_to_docx first). | |
| styles | Yes | Style profile: paragraph_styles list and optional section (page size and margins) from get_styles_from_docx. |