fill_template
Fill structured document tags (SDT) in Word files using a data dictionary, with optional removal of unmatched content controls.
Instructions
Fill SDT content controls from data dict. Keys match w:tag values.
Args: data: Mapping of tag names to values. Use list[str] for repeating sections. remove_empty: If True, remove SDTs with no matching key in data.
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": {
"data": "<data>"
},
"name": "fill_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| remove_empty | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |