docx.replace_text
Replace text in DOCX documents using literal or regex matching, targeting the document, headers, footers, or all.
Instructions
Replace text in document
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": {
"docId": "<docId>",
"match": "<match>",
"replace": "<replace>"
},
"name": "docx.replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| docId | Yes | Document ID | |
| match | Yes | Text to find | |
| where | No | ||
| replace | Yes | Replacement text |