copy_variant_values

Power workflow: copy every variable's source-variant value into the destination variant across the entire group.

Power workflow: copy every variable's source-variant value into the destination variant across the entire group.

Writes data · Idempotent · Calls external systems.

Parameters

FieldTypeRequiredDescription
acknowledgebooleanNoReset edit budget after user approval
from_variantstringYesSource variant id or name
group_idnumberYesVariable group id
to_variantstringYesDestination variant id or name

Example arguments

Illustrative arguments an agent supplies when calling this tool:

{
  "group_id": 0,
  "from_variant": "string",
  "to_variant": "string"
}

Description

One call promotes staging → prod (or copies dev → canary, etc.) atomically.

from_variant and to_variant accept variant ids (number) or names (string). Variables that have no value on the source variant are skipped. Returns the count of variables actually mutated.

This copies ALL variables in the group at once. To set a single variable's value in one variant, use set_variable_value instead.

What's next?

All MCP tools

Browse the full tool reference by category.

Connect a client

Point Claude, Cursor, or Claude Code at the server.

Last updated on