skypilot_volume_apply
Create or register a cloud volume by name and type, such as k8s-pvc or runpod-network-volume, with an optional size, infra, and labels. Returns a request_id to track the volume provisioning.
Instructions
Create or register a volume. Accepts a volume configuration as a JSON/dict with fields: name, type ('k8s-pvc' or 'runpod-network-volume'), size (e.g. '100GB'), and optional fields like infra, labels, use_existing, config. Returns a request_id.
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": {
"name": "<name>",
"volume_type": "<volume_type>"
},
"name": "skypilot_volume_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| size | No | ||
| infra | No | ||
| config | No | ||
| labels | No | ||
| volume_type | Yes | ||
| use_existing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |