Create many variations
create_variation_batchCreate up to 1,000 variations of a project in one call, each made from the same source version with its own partial edit, such as one per language or per market. The source is fromVersionId, the head of fromVariation, or main's head when both are left out; it stays as it is. Every row is checked first, its name, replacements and uploads included; if any is refused, nothing is queued and the error names it as variations[i]. A name the project already has fails with variation_exists. Each upload can be named by one row only. At most 10 batches per workspace wait or run at once (batch_limit). Returns the queued batch: call get_variation_batch with waitSeconds until its status is finished, cancelled or failed, and render each new variation by its name.
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>",
"variations": "<variations>"
},
"name": "create_variation_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project id, from list_projects. | |
| variations | Yes | One row per variation to create. | |
| fromVariation | No | Start every variation from this variation's head, from list_variations. Not with fromVersionId. | |
| fromVersionId | No | The version of this project every variation starts from, from list_versions. Not with fromVariation. | |
| idempotencyKey | No | Makes a retry safe: for 24 hours the same call with the same key returns the batch the first one queued. The same key with different arguments fails with idempotency_key_reused while that batch exists; while the first is still running, idempotency_key_in_use. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| error | Yes | ||
| total | Yes | ||
| failed | Yes | ||
| status | Yes | ||
| createdAt | Yes | ||
| projectId | Yes | ||
| succeeded | Yes | ||
| finishedAt | Yes | ||
| variations | Yes | ||
| sourceVersionId | Yes |