MCP Server Office

write_docx

Generate and save a new docx file with specified content and formatting, including tables and paragraphs. Use this tool to create documents directly from text inputs within the MCP Server Office environment.

Instructions

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" }

You must be authenticated.

Other Tools from MCP Server Office

Related Tools

ID: 67m983dlq9