search_replace_docx
Find and replace text in DOCX files, with option to overwrite or save to a different path.
Instructions
Search and replace text in a DOCX file
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>",
"search_text": "<search_text>",
"replace_text": "<replace_text>"
},
"name": "search_replace_docx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the .docx file | |
| output_path | No | Save to different path (omit to overwrite) | |
| search_text | Yes | Text to search for | |
| replace_text | Yes | Replacement text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |