MCP tools

Duplicate and vary

Duplicate a campaign/ad set/ad N times, varying ONE specific settings path across the copies.

Tool name: duplicate-and-vary.

Duplicate a campaign/ad set/ad N times, varying ONE specific settings path across the copies. vary.path is a dotted path into the settings schema, call getSettingsSchema first to confirm the path is valid. Common paths: 'targeting.ageRange', 'targeting.locations', 'targeting.interests', 'optimization.bidAmount', 'optimization.bidStrategy', 'budget.dailyAmount', 'budget.lifetimeAmount'. vary.values must be the list of variant values (one per copy, length must equal count).

When to use

Duplicate a node N times and vary ONE settings-schema path across the copies (e.g. different ageRanges or budgets per copy). For plain duplication without variation use duplicateNode.

Access

PropertyValue
Required scopewrite
PublishesNo
Read-onlyNo
DestructiveNo
IdempotentNo
Open worldNo

Input

FieldTypeRequiredDescription
campaignLaunchIdstringYesCampaign launch ID (a.k.a. batch ID). Read it from the Current Context block when one is in scope, or resolve it from a mention via listAccountCampaigns / the campaign tree when the user @-mentioned a different launch.
nodeIdstringYesID of the node to duplicate
countnumberYesMinimum 1, maximum 20.
varyobjectYes
vary.pathstringYesDotted settings-schema path to vary across copies (e.g. 'targeting.ageRange', 'optimization.bidAmount', 'budget.dailyAmount'). MUST resolve against getSettingsSchema, invalid paths are rejected by the backend.
vary.valuesany[]YesOne variant value per copy. Length must equal count. Values are shape-checked against the settings schema at the given path on the backend, mismatched types will error. At least 1 item.
nameTemplatestringNoOptional name template, e.g., "{original} - Variant {i}"

Output

The tool catalog does not declare an output schema for this tool.

REST equivalent

POST /v1/brands/{brandId}/launches/{launchId}/nodes/{nodeId}/variations, Duplicate and vary. CLI: koast duplicate-and-vary.

On this page