Start A/B test
start_ab_testStarts a draft A/B test: shoppers on the bundle or cart are split by the traffic and each sees one version. It goes in two steps. The first call starts nothing: it checks the test can start and returns a picture of each version, what each changes against A, the traffic and a confirm_token. Show the merchant, and when they say yes, call again with the same ab_test_id plus confirm_token. The bundle or cart must be on. A started test can't change or be undone; end_ab_test ends it with the version the merchant picks. A test runs at most 90 days.
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": {
"ab_test_id": "<ab_test_id>"
},
"name": "start_ab_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ab_test_id | Yes | Test id from list_ab_tests. | |
| confirm_token | No | The token from the first call, once the merchant said yes. |