Render a template without sending it
render_templatePreview the HTML a template produces with your values and list the variables it needs. Missing or unknown variables are named with a fix instead of sending a half-filled email.
Instructions
Purpose: see exactly what a template produces with your values, and find out which variables it needs. NOT for: sending. Nothing leaves. Returns: the rendered HTML. An unknown or missing variable comes back named, with the fix, instead of shipping a half-filled email.
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_id": "<template_id>"
},
"name": "render_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | No | Values for the template variables. | |
| template_id | Yes | The template id from list_templates. | |
| version_number | No | A specific version. Defaults to the published one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present instead of the fields above when the call was refused: code, message, fix, docs_url, retryable and, when waiting helps, retry_after_seconds. | |
| rendered | No | The rendered subject and body. |