rollback_app
Revert an application to a previous release and restart it while preserving stored data; optionally restore environment variables saved with that release.
Instructions
Rolls the application back to a previous release: its code goes back to that version and the application restarts. Data the application wrote while running is kept. Environment variables are kept as they are unless restore_environment is true, which also needs the apps:envs scope; run preview_rollback first in that case. Possible errors: RELEASE_EXPIRED, RELEASE_ALREADY_ACTIVE, RESTORE_COOLDOWN, OPERATION_IN_PROGRESS. (scope: apps:write)
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": {
"id": "<id>",
"release_id": "<release_id>"
},
"name": "rollback_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Application ID | |
| release_id | Yes | Release ID (from `list_releases`) | |
| workspace_id | No | ID of the workspace that owns the resource, if any | |
| restore_environment | No | Also restore the environment variables saved with that release (default: false) |