word_replace_texts
Find and replace text in Word documents by applying multiple search/replace pairs in one pass, with options for case sensitivity and tracked changes.
Instructions
Find and replace text across a Word document's paragraphs
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": {
"file_path": "<file_path>",
"edits": "<edits>"
},
"name": "word_replace_texts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | List of search/replace pairs to apply in one pass | |
| file_path | Yes | Absolute path to the .docx file | |
| track_changes | No | Record this edit as a tracked change (default: true) | |
| case_sensitive | No | Match case exactly (default: false) |