Search and Replace
search_and_replaceFinds all instances of specified text in a Word document and replaces them with new text.
Instructions
Search for text and replace all occurrences.
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": {
"filename": "<filename>",
"find_text": "<find_text>",
"replace_text": "<replace_text>"
},
"name": "search_and_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| find_text | Yes | ||
| replace_text | Yes |