create_variant
Adapt a master content item into a platform- and format-specific variant for social or owned channels, returning the variant ID needed for publishing steps.
Instructions
[Pipeline step 4 — Adapt] Create a platform/format-specific variant of a master Content. Allowed platforms: instagram/linkedin/threads/tiktok/youtube/x (social) + blog/email/self (own channels). Allowed formats: reel/carousel/single_post/article/thread/story/short + blog/video. Use variant.id as the variant_id input for the next step — create_blog_post_from_markdown / create_carousel / send_newsletter / link_video_project_to_variant.
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": {
"content_id": "<content_id>",
"platform": "<platform>",
"format": "<format>"
},
"name": "create_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | Target format (see description for allowed values). | |
| hashtags | No | Variant hashtags | |
| platform | Yes | Target platform (see description for allowed values). | |
| body_text | No | Variant body text (platform-adapted copy). | |
| content_id | Yes | Content ID this variant belongs to | |
| character_count | No | Character count (validate against platform limits). | |
| platform_settings | No | Platform-specific settings (Postiz DTO pattern). |