Office Word MCP Server

by GongRzhe
Verified

create_custom_style

Create a custom style in the document.

Args: filename: Path to the Word document style_name: Name for the new style bold: Set text bold (True/False) italic: Set text italic (True/False) font_size: Font size in points font_name: Font name/family color: Text color (e.g., 'red', 'blue') base_style: Optional existing style to base this on

Input Schema

NameRequiredDescriptionDefault
base_styleNo
boldNo
colorNo
filenameYes
font_nameNo
font_sizeNo
italicNo
style_nameYes

Input Schema (JSON Schema)

{ "properties": { "base_style": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Base Style" }, "bold": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Bold" }, "color": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Color" }, "filename": { "title": "Filename", "type": "string" }, "font_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Font Name" }, "font_size": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Font Size" }, "italic": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Italic" }, "style_name": { "title": "Style Name", "type": "string" } }, "required": [ "filename", "style_name" ], "title": "create_custom_styleArguments", "type": "object" }