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.
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 | |||