update_compose_env
Update a compose service's environment variables by replacing the file or merging changes and unsetting names, without redeploying.
Instructions
Update a compose service's environment variables.
Pass env to replace the file, or variables and unset to merge into the current file. This does not redeploy. When a name is in both variables and unset, it is removed.
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": {
"compose_id": "<compose_id>"
},
"name": "update_compose_env"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| unset | No | ||
| variables | No | ||
| compose_id | Yes | composeId from list_compose_services or get_project. | |
| create_env_file | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||