apply_env_changes
Restart a service to apply current environment variables, or rebuild its image when build-time variables change; first call previews changes, then confirm to execute.
Instructions
Restart the service with its current variables (about a second, no rebuild). rebuild=true rebuilds the image instead: needed when a build-time variable changed. The first call only returns a preview; call again with confirm=true once the user agrees.
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": {
"project_id": "<project_id>"
},
"name": "apply_env_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| rebuild | No | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |