Modify WordprocessingML XML Element
modify_word_xml_elementModify XML text or tags in a Word document's underlying XML to apply targeted customizations. Provide target text and replacement XML payload for precise edits.
Instructions
Performs low-level XML text node or tag modification in document.xml for deep customization.
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": {
"filePath": "<filePath>",
"targetText": "<targetText>",
"replacementText": "<replacementText>"
},
"name": "modify_word_xml_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to target .docx file | |
| outputPath | No | Optional output path | |
| targetText | Yes | Target string to find in document.xml | |
| replacementText | Yes | Replacement string or XML payload |