cml_generate_from_template
Generates output files by processing a Freemarker template with Context Mapper model data.
Instructions
Generate output from a custom Freemarker template. Requires Java 17+ and CLI.
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>"
},
"name": "cml_generate_from_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Timeout in milliseconds | |
| outputDir | No | Output directory for generated files | |
| templatePath | Yes | Path to the Freemarker (.ftl) template file | |
| outputFileName | No | Optional output file name |