validate_template
Validate that template variables, loops, and conditions resolve against data, reporting missing keys to catch errors before filling documents.
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.
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). |