MCP Server Office
by famano
edit_docx_paragraph
Make text replacements in specified paragraphs of a docx file. Accepts a list of edits with paragraph index and search/replace pairs. Each edit operates on a single paragraph and preserves the formatting of the first run. Returns a git-style diff showing the changes made. Only works within allowed directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
edits | Yes | Sequence of edits to apply to specific paragraphs. | |
path | Yes | Absolute path to file to edit. It should be under your current working directory. |