---
title: "rename_variant"
description: "Rename a variant in a group atomically."
sidebarTitle: "rename_variant"
lastUpdated: "2026-09-23"
---

> **For AI agents:** the complete documentation index is at [llms.txt](/llms.txt). Append `.md` to any page URL for its markdown version.

{/* GENERATED FILE: do not edit by hand. Regenerate with: node scripts/generate.mjs */}

Rename a variant in a group atomically.

<Info>
  **Writes data · Idempotent · Calls external systems.**
</Info>

## Parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `acknowledge` | boolean | No | Reset edit budget after user approval |
| `group_id` | number | Yes | Variable group id |
| `name` | string | Yes | New variant name |
| `variant_id` | number | Yes | Variant id |

## Example arguments

Illustrative arguments an agent supplies when calling this tool:

```json
{
  "group_id": 0,
  "variant_id": 0,
  "name": "string"
}
```

## Description

```text
Existing variable values stay attached to the variant id (the rename is name-only).
```

## What's next?

<Columns cols={2}>
  <Card title="All MCP tools" icon="robot" href="/mcp/tools/overview">
    Browse the full tool reference by category.
  </Card>
  <Card title="Connect a client" icon="plug" href="/mcp/connect">
    Point Claude, Cursor, or Claude Code at the server.
  </Card>
</Columns>
