Select a campaign output version
select_campaign_output_versionMakes an existing image version the selected one for a campaign image. Takes the target version_id and expected_current_version_id, both from get_campaign_output_workspace; when the selection has changed since that read the call is refused, so a stale choice cannot overwrite a newer one. Selecting the version that is already selected changes nothing. Generates and exports nothing.
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": {
"campaign_id": "<campaign_id>",
"generation_job_id": "<generation_job_id>",
"version_id": "<version_id>",
"expected_current_version_id": "<expected_current_version_id>"
},
"name": "select_campaign_output_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version_id | Yes | Version id to select, from get_campaign_output_workspace. | |
| campaign_id | Yes | campaign_id from list_campaigns. | |
| generation_job_id | Yes | The image's finished-image reference: _references.generation_job_id on a get_campaign_outputs or list_campaigns result. | |
| expected_current_version_id | Yes | Version id that get_campaign_output_workspace reported as selected; a selection that changed since that read is refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | No | copy value in this response. | |
| sizes | No | sizes value in this response. | |
| changed | No | changed value in this response. | |
| versions | No | versions value in this response. | |
| cta_status | No | cta status value in this response. | |
| _references | No | Opaque action references accepted by subsequent tool calls. | |
| campaign_id | No | campaign id value in this response. | |
| cost_credits | No | Credits quoted or charged by this operation. | |
| selection_state | No | selection state value in this response. | |
| selected_version_id | No | selected version id value in this response. | |
| quality_review_recommended | No | quality review recommended value in this response. |