fill_template
Fill structured document templates by mapping data dictionary keys to content control tags, with support for repeating sections and optional removal of unmatched 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 |