Preview a graphic
preview_graphicChecks a template's data at once (its schema, and with source_text every figure against the script), then takes stills of the animated graphic in the brand's colours and fonts (brand_id's kit, or with project_id the project's). Returns a task_id; get_task gives the stills' image URLs in about 10 to 30 seconds. 1 credit a still.
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": "<template>",
"data": "<data>"
},
"name": "preview_graphic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The template's data, matching its data_schema | |
| brand_id | No | A brand kit from list_brands (id or name). Brings the colours, fonts, logo, website and default copy (headline, call to action, small print); use instead of brand. | |
| template | Yes | A template from list_graphics | |
| placement | No | full replaces the picture; right, left and band are overlays (each template lists the ones it takes) | full |
| at_seconds | No | When to take stills, in seconds into the graphic; default the middle and the last frame | |
| project_id | No | A long-form project: the stills use its brand kit, as its export will (brand_id, if also given, wins) | |
| source_text | No | The script the figures come from; every figure in the data must appear in it |