Make one variant again
variations_regenerateMake one variant of a variation batch again. Re-quoted at the batch's per-variant price and paid once; pass expectedGeneration (the variant's generation from variations_get): a repeat replays instead of paying twice. Not for approved or running variants.
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>",
"batchId": "<batchId>",
"variantId": "<variantId>",
"expectedGeneration": "<expectedGeneration>"
},
"name": "variations_regenerate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batchId | Yes | `id` from GET /v1/projects/{projectId}/variations. | |
| projectId | Yes | The project id (`id` from GET /v1/projects). | |
| variantId | Yes | The variant to make again (`variants[].id`, such as v0003). | |
| workspace | No | Workspace slug. Omit to use the workspace your credential is bound to. An API key names its own workspace, and a value that disagrees with it is refused rather than ignored. | |
| expectedGeneration | Yes | The variant's `generation` as you last read it from GET .../variations/{batchId}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||