MCP Server Office

write_docx

Create a new docx file with given content.Editing exisiting docx file with this tool is not recomended.

Input Schema

NameRequiredDescriptionDefault
contentYesContent to write to the file. Two line breaks in content represent new paragraph.Table should starts with [Table], and separated with '|'.Escape line break when you input multiple lines.
pathYesAbsolute path to target file. It should be under your current working directory.

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "Content to write to the file. Two line breaks in content represent new paragraph.Table should starts with [Table], and separated with '|'.Escape line break when you input multiple lines.", "type": "string" }, "path": { "description": "Absolute path to target file. It should be under your current working directory.", "type": "string" } }, "required": [ "path", "content" ], "type": "object" }