Restart application
tzcloud_restart_applicationRestart one environment's running copy. It re-applies the bindings its serving version recorded, not the current manifest's. Each binding reads its secret's current value. The database keeps its data and password. Stored files stay as they are. No build or new version is made, and no daily deploy is spent. A new manifest binding needs a deploy or promote. Resume a halted environment first. Wait for any deploy, promote or restart in flight to end.
An answer not from this platform does not show whether the restart started. Examples are gateway error pages or closed connections. Call tzcloud_read_status with wait_seconds first. The restart started if the environment's deploy member under environments shows kind restart with a started_at later than your call. Repeat tzcloud_restart_application only if that read shows it did not start.
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": {
"application": "<application>",
"environment": "<environment>"
},
"name": "tzcloud_restart_application"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| placement | No | Super-admin only, for any account's application. `standing` (default) re-creates compute in place. `rule` runs the placement rule once for its size and sleep setting, moving a standing `shared-0.5gb` production environment to shared compute. Other callers passing it are refused `invalid_request`. | |
| application | Yes | Your account's application `id` from `tzcloud_list_applications`, not its name or label. | |
| environment | Yes | The environment whose running copy is restarted, `development` or `production`. It must hold a serving version with compute; an environment never deployed is refused `environment_never_deployed`. | |
| wait_seconds | No | The seconds the answer is held until this call's version-history row ends. A value out of range is refused `invalid_request`. |