Inject Data into Docx Template
inject_template_dataMerges JSON key-value data into a .docx template, replacing placeholders like {name} and {#items} to generate a filled Word document.
Instructions
Merges JSON key-value data into a .docx template containing tags (e.g., {name}, {#items}).
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": {
"templatePath": "<templatePath>",
"data": "<data>",
"outputPath": "<outputPath>"
},
"name": "inject_template_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Key-value data object | |
| outputPath | Yes | Output .docx file path | |
| templatePath | Yes | Path to input template .docx |