Create variation
create_variationCreate a variation of a project: a head of its own that edits, imports, renders and render links can name, starting at fromVersionId (any version of the project), at fromVariation's head, or at main's head when both are left out. The project needs a version first. At most 10,000 variations per project, main included (variation_limit); a name it already has fails with variation_exists. A fromVersionId larger than the plan's project size (get_usage's limits.maxProjectBytes) and than every head of the project fails with project_too_large.
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>",
"name": "<name>"
},
"name": "create_variation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 1 to 100 letters, digits, '-', '_' or '.', starting with a letter or digit; kept in lower case. | |
| projectId | Yes | Project id, from list_projects. | |
| fromVariation | No | Start at this variation's head, from list_variations. Not with fromVersionId. | |
| fromVersionId | No | The version of this project the variation starts at, from list_versions. Not with fromVariation. | |
| idempotencyKey | No | Makes a retry safe: for 24 hours the same call with the same key returns the variation the first one created. The same key with different arguments fails with idempotency_key_reused while that variation exists; while the first is still running, idempotency_key_in_use. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| createdAt | Yes | ||
| renderable | Yes | ||
| headVersionId | Yes |