word_add_paragraph
Append a new paragraph to an existing Word (.docx) document. Provide text and optional style; returns the index of the added paragraph.
Instructions
Append a paragraph to the body of the document.
Args:
path: Path to an existing .docx.
text: Text for the new paragraph. An empty string is accepted
and produces an empty paragraph.
style: Optional built-in style name (e.g. "Intense Quote").
folder: Optional base folder for relative paths.
Returns:
{"index": <n>} where <n> is the index of the newly
appended paragraph.
Raises:
OfficeMCPError: ERR_FILE_NOT_FOUND if the file is missing,
ERR_INVALID_PARAMS for bad text type or unknown
style, ERR_UNSUPPORTED_FMT for non-.docx
extensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| text | Yes | ||
| style | No | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||