Start, stop or restart app
control_appStops an app by scaling it to zero replicas, starts a stopped app, or restarts running instances to manage compute state and billing.
Instructions
Stops (scales to zero, keeps configuration; stopped apps are not billed for compute), starts again, or restarts an app.
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": {
"app": "<app>",
"action": "<action>"
},
"name": "control_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App (deployment) name or ID. | |
| action | Yes | start resumes a stopped app, stop scales it to zero replicas, restart restarts its instances. | |
| project | No | Project name or ID. Defaults to NIMBUZ_PROJECT, the `nimbuz use` context, or the only project. | |
| environment | No | Environment name (e.g. production) or ID (env-…). Defaults to NIMBUZ_ENV, the `nimbuz use` context, or the only environment. | |
| waitSeconds | No | Wait up to this many seconds for the rollout to finish (default 0 = return immediately). Builds usually take 1-5 minutes; check later with get_app_status. |