sleep_container
Stop a running container to free memory, while preserving its volume, database, and public URL. The container wakes automatically on the next request, returning the updated container.
Instructions
Sleep a running container: stop it to free memory while keeping its volume, database, and public URL, so it wakes again on the next request. 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>"
},
"name": "sleep_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |