validate_template
Validate template placeholders, loops, and conditionals against data, reporting missing keys before filling. Read-only check, no file modifications.
Instructions
Validate that all {{placeholder}} variables, {{#each}} loops, and {{#if}}/{{#unless}} conditions in a template can be resolved against data, reporting missing keys. Read-only — never modifies the file. Call this BEFORE fill_template to catch missing keys early.
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": {
"template_path": "<template_path>",
"data": "<data>"
},
"name": "validate_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Key-value data to validate against placeholders. | |
| template_path | Yes | Path to the template document (.docx/.xlsx). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||