set_always_on
Toggle a container's always-on 24/7 status to prevent sleeping. On Free plans, enabling consumes a paid add-on slot; Pro/Scale containers are already always-on.
Instructions
Turn a container's always-on (24/7, never sleeps) flag on or off. On Free this consumes a paid always-on add-on slot (fails if none is free); on Pro/Scale every container is always-on already. Returns the updated container.
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": {
"containerId": "<containerId>",
"enabled": "<enabled>"
},
"name": "set_always_on"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true to enable always-on, false to disable. | |
| containerId | Yes | The container's UUID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Container UUID. | |
| url | Yes | Public HTTPS URL. | |
| status | Yes | Lifecycle status, e.g. running or sleeping. | |
| createdAt | No | Creation time (ISO 8601). | |
| subdomain | Yes | Container subdomain. | |
| memoryBytes | No | Memory limit in bytes. | |
| storageBytes | No | Storage used in bytes. |