Office Word MCP Server

by GongRzhe
Verified

add_table

Add a table to a Word document.

Args: filename: Path to the Word document rows: Number of rows in the table cols: Number of columns in the table data: Optional 2D array of data to fill the table

Input Schema

NameRequiredDescriptionDefault
colsYes
dataNo
filenameYes
rowsYes

Input Schema (JSON Schema)

{ "properties": { "cols": { "title": "Cols", "type": "integer" }, "data": { "anyOf": [ { "items": { "items": { "type": "string" }, "type": "array" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Data" }, "filename": { "title": "Filename", "type": "string" }, "rows": { "title": "Rows", "type": "integer" } }, "required": [ "filename", "rows", "cols" ], "title": "add_tableArguments", "type": "object" }