edit_docx_paragraph
Replace targeted text in specific paragraphs of a docx file while preserving formatting. Accepts a list of edits with paragraph indices and search/replace pairs. Returns a git-style diff of changes. Works within allowed directories for precise document updates.
Instructions
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. |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from MCP Server Office
Related Tools
- @famano/mcp-server-office
- @alekspetrov/mcp-docs-service
- @shariqriazz/vertex-ai-mcp-server
- @skydeckai/mcp-server-aidd
- @ryanjoachim/mcp-rtfm