Copy a template to a Meta 4:5 or 9:16 aspect-ratio variant
create_template_variantCopies an existing template (code OR visual) to a Meta aspect-ratio variant: placement "4_5" (Feed, 1080×1350) or "9_16" (Stories and Reels, 1080×1920). Meta feeds then carry, next to image_link, a tagged image per product that Meta picks for that placement, instead of putting the square image in a taller tile with bars. The copy is INACTIVE: adapt it (update_code_template for code; the web editor for visual), check it with preview_render, then update_code_template {isActive:true} — for visual templates the user activates it in the web UI. Code CSS written with fixed pixel heights needs reworking for the taller canvas; width/height 100% flex layouts carry over. The response repeats the placement's safe zones.
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": {
"templateId": "<templateId>",
"placement": "<placement>"
},
"name": "create_template_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| placement | Yes | ||
| templateId | Yes | The template to copy, usually the feed's active main template. |