Preview Card
preview_cardRender ONE authored card on its own and SEE it, before placing it in a composition. Pass the same html (+ optional tokens) you would put in a {kind:"card"} clip; you get the still back as an image. Use this while writing a card — it is the fast loop for catching type that overflows the frame, a headline that collides with a logo, or tokens that did not resolve. Sized to the format you name, so what you see is what that aspect ratio will show. To judge MOTION rather than layout, shell the card with a motion preset and use preview_clip.
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": {
"projectId": "<projectId>",
"html": "<html>"
},
"name": "preview_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | The card markup, exactly as it would appear in a {kind:"card"} clip source. | |
| tokens | No | Token substitutions the html references (e.g. brand colours, fonts). Same shape as the clip source `tokens`. | |
| commandId | No | Retry identity. A call repeated with the same commandId returns the first result instead of acting twice. | |
| projectId | Yes | projectId (path) — the card is rendered inline; nothing is persisted to the project. | |
| aspectRatio | No | Frame to size the card into. Default 9:16 — a card that fits 16:9 often overflows vertical. |