Office Word MCP Server

by GongRzhe
Verified

format_table

Format a table with borders, shading, and structure.

Args: filename: Path to the Word document table_index: Index of the table (0-based) has_header_row: If True, formats the first row as a header border_style: Style for borders ('none', 'single', 'double', 'thick') shading: 2D list of cell background colors (by row and column)

Input Schema

NameRequiredDescriptionDefault
border_styleNo
filenameYes
has_header_rowNo
shadingNo
table_indexYes

Input Schema (JSON Schema)

{ "properties": { "border_style": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Border Style" }, "filename": { "title": "Filename", "type": "string" }, "has_header_row": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Has Header Row" }, "shading": { "anyOf": [ { "items": { "items": { "type": "string" }, "type": "array" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Shading" }, "table_index": { "title": "Table Index", "type": "integer" } }, "required": [ "filename", "table_index" ], "title": "format_tableArguments", "type": "object" }