Resize volume
volume_resizeIncrease a persistent sandbox volume in place while it remains online, with no data copying and attached sandboxes continuing to run. Use for growing storage only; shrinking is not supported.
Instructions
Use this when the user wants a bigger persistent sandbox volume. It grows in place and online: no data is copied and an attached sandbox keeps running. A volume cannot shrink (volume_shrink_unsupported), except an older one, which can if at least 10% of the new size stays free (volume_too_full_to_shrink otherwise). Calling again with the current size is a no-op. Allowed sizes are per project (minSizeGb/maxSizeGb); the server rejects anything outside that range with invalid_volume_size, so do not assume a maximum. Returns the updated volume. grownInSandbox false means the attached sandbox still sees the old size until a sandbox next mounts the volume; sizeEnforced false means the region does not enforce the size as a hard limit. Other error codes: volume_not_resizable, volume_resize_in_progress (retry shortly), volume_not_provisioned, volume_capacity_unavailable (no room on the machine to grow), volume_resize_timeout (size left unchanged; safe to retry).
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": {
"project": "<project>",
"volume": "<volume>",
"sizeGb": "<sizeGb>"
},
"name": "volume_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sizeGb | Yes | New size in GB (whole number, at least 1) | |
| volume | Yes | Volume name or ID (from volume_list) | |
| project | Yes | Project name, slug, or ID |