preview_component
Preview a component in isolation with frame contact sheets, theme options, props, and keyframes to catch script errors before building a composition.
Instructions
Look at a component (a project one, or a kit one) on its own before putting it in a composition: frames over dur seconds as a contact sheet, in light and dark (or one theme), with props set (attrs) and keyframes on its animatable props (anim: [{ prop: "attr:", at, dur, from, to, ease? }]; by default every animatable number of a project component runs from its minimum to its maximum, else 0 to 1). Returns the sheets, each frame and any script error the component threw (fix those first).
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": {
"tag": "<tag>"
},
"name": "preview_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | No | ||
| dur | No | ||
| tag | Yes | ||
| anim | No | Keyframes, as a layer's anim[] | |
| attrs | No | Props, as a layer sets them | |
| theme | No | both | |
| frames | No |