prompt_template_fill
Fill a prompt template with variables. Supports {{variable}} syntax and {{#if key}}...{{/if}} conditional blocks. Returns the filled prompt and lists unfilled variables.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strict | No | Throw error if any variable is not provided (default: false) | |
| template | Yes | Prompt template with {{variable}} placeholders | |
| variables | No | Key-value pairs to fill (e.g. {"name":"Alice","role":"engineer"}) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | ||
| total_vars | No | ||
| filled_variables | No | ||
| unfilled_variables | No |