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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| remove_empty | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |