write_part
Replace a specific part of a DOCX document with new XML after validating well-formedness.
Instructions
Replace a DOCX part with new XML. Validates well-formedness first. WARNING: Direct XML manipulation can corrupt the document if used incorrectly.
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": {
"part_path": "<part_path>",
"xml": "<xml>"
},
"name": "write_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | ||
| part_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |