Change an experiment variant
update_experiment_variantChange a draft experiment's variant (key b, c or d): send the page's components as they should be in that variant, in the same shape as update_draft. Blocks you leave unchanged keep following the live page. Only experiments that haven't started can change. Returns savedAt and the blocks that now differ from the page.
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": {
"id": "<id>",
"variant": "<variant>",
"components": "<components>"
},
"name": "update_experiment_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The experiment's id, from create_experiment or list_experiments. | |
| fields | No | Page fields that differ in this variant. Leave out to keep the page's own. | |
| variant | Yes | Which variant to change. a is the original page and cannot change here. | |
| components | Yes | The page's blocks as they should be in this variant, in the blockShape from get_schema, keeping block ids. |