word_replace_text
Replace literal text in DOCX paragraphs, including strings split across multiple runs. Update the file in place or save changes to a separate output path.
Instructions
Replace literal text in DOCX paragraphs, including text split across multiple runs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"find": "<find>",
"replacement": "<replacement>"
},
"name": "word_replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | ||
| path | Yes | Absolute path or path relative to the server working directory | |
| matchCase | No | ||
| overwrite | No | ||
| outputPath | No | Optional output path. Omit to update the input file in place. | |
| replacement | Yes |