Promote a variant
optimization_promotePromotes the selected optimization variant to a new strategy version and launches an out-of-sample backtest when an OOS window exists, while protecting campaign holdouts from premature use.
Instructions
Writes the variant as a new version of the source strategy and, when the run has an OOS window, launches the OOS backtest. Returns {promotedStrategyVersion, oosBacktestId}. Inside a campaign an OOS window in the locked region is refused — the holdout is spent only by campaign_finalize.
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": {
"runId": "<runId>",
"variantIdx": "<variantIdx>"
},
"name": "optimization_promote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes | ||
| variantIdx | Yes |