word_create_document
Create a new .docx file at a specified path, with an optional title paragraph.
Instructions
Create a new .docx file at path with an optional title paragraph.
Args:
path: Target .docx path. May be absolute or relative to
folder (or to the default folder when folder is
None).
title: Optional text for the first paragraph. When None the
document is created with a single empty paragraph (the
python-docx default).
folder: Optional base folder for relative paths.
Returns:
{"path": "<absolute path>"} on success.
Raises:
OfficeMCPError: ERR_INVALID_PARAMS if path is empty or
a file already exists at the target. ERR_UNSUPPORTED_FMT
if path does not end in .docx.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| title | No | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||