fill_hwp_template
Replace placeholders in an HWPX template with specific values using a JSON mapping. Provide the template file path, replacements object, and optional output path to generate a customized document.
Instructions
Fill multiple placeholders in an HWPX template. replacements is a JSON object string, e.g. {"{{name}}":"Kim","{{company}}":"Acme"}. v0.2: .hwpx only. Args: file_path, replacements, output_path (optional).
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": {
"file_path": "<file_path>",
"replacements": "<replacements>"
},
"name": "fill_hwp_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| replacements | Yes | ||
| output_path | No |