parse_template
Convert Chef ERB templates to Jinja2 format for Ansible migration, extracting variables to simplify infrastructure configuration transitions.
Instructions
Parse a Chef ERB template file and convert to Jinja2.
Args: path: Path to the ERB template file.
Returns: JSON string with extracted variables and Jinja2-converted template.
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": {
"path": "<path>"
},
"name": "parse_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |