create_preview_run
Render a template's email on real email clients and capture screenshots. Pass exactly one of device_set_id or device_ids. Each run is billed to the workspace's previews add-on. The run starts PENDING, so poll get_preview_run for the results.
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": "create_preview_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Variables for the template, the same shape as the data a send would carry | |
| locale | No | Locale to render, e.g. "en-US" | |
| device_ids | No | Device ids (pvd_...) from list_preview_devices. An id the catalog does not list is rejected. | |
| template_id | Yes | The notification template id (nt_...). It must be a Design Studio template with an email channel. | |
| device_set_id | No | A saved device set id (pvs_...). Use the Courier Recommended set from list_preview_device_sets for a sensible default. | |
| template_version | No | Which version renders: omit for the latest draft, "published" for the live version, or a publish such as "v002". |