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
| Field | Type | Required | Description |
|---|---|---|---|
acknowledge | boolean | No | Reset edit budget after user approval |
from_variant | string | Yes | Source variant id or name |
group_id | number | Yes | Variable group id |
to_variant | string | Yes | Destination 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.
Related
What's next?
Last updated on