Render a motion ad from a Library card
render_motion_ad[writes flayr data · write scope] Turns one Library image (the card) into a 6-15 s motion ad: hook (push-in on the card), up to 3 body beats (pans with the text), then a CTA end card in the brand color with the CTA and the link host. 9:16 unless aspect is 1:1 or 16:9. The text is used exactly as given; it is not rewritten. Saves a new draft in the card's brand (labels format:motion-ad, source:template); nothing is posted and the card is unchanged. Free. Returns a jobId: poll get_job_status.
(Wraps POST /api/v2/video-studio/templates/motion-ad-from-card/render.)
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": {
"contentId": "<contentId>",
"hook": "<hook>",
"cta": "<cta>",
"ctaUrl": "<ctaUrl>"
},
"name": "render_motion_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cta | Yes | ||
| body | No | Up to 3 beats are used; blanks are dropped. | |
| hook | Yes | ||
| aspect | No | ||
| ctaUrl | Yes | http(s) link; its host is shown on the end card. | |
| contentId | Yes | The card: a Library image. | |
| textColor | No | #RRGGBB. | |
| brandColor | No | #RRGGBB; defaults to the brand profile color. |