update_variable
Update the name or value of an existing non-secret variable within a Codemagic variable group. Specify the group and variable IDs, then provide the new name and value.
Instructions
Update the name or value of an existing non-secret variable in a Codemagic variable group. The variable_id comes from list_variable_groups. For secret values use the Codemagic UI — secrets should never pass through the agent.
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": {
"group_id": "<group_id>",
"variable_id": "<variable_id>",
"name": "<name>",
"value": "<value>"
},
"name": "update_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_id | Yes | The variable group ID | |
| variable_id | Yes | The variable ID to update (from list_variable_groups) | |
| name | Yes | New variable name | |
| value | Yes | New variable value |