update_variant
Edit or rename a variant's script, tab label, or note while preserving the original text in history. Use it to revise a take or clarify why it changed.
Instructions
Edit or rename a variant: its script, its name (the tab label) or its note. History keeps the old text.
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": {
"session": "<session>",
"variant": "<variant>"
},
"name": "update_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New tab label, 1-4 words. | |
| note | No | One line: what changed or why. | |
| script | No | The variant's new script. | |
| session | Yes | Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work. | |
| variant | Yes | Variant id from get_session. |