Download service file
download_service_fileDownload a single file from a VPSnet server to a local path, writing it atomically and verifying its size and SHA-256. Set overwrite=true only after user approval to replace an existing local file.
Instructions
Download one file from the server to a local path on the machine running this MCP server: mints a download URL, fetches it without the API key (the URL is its own token) and writes the file atomically, verifying the size and answering the SHA-256. An existing local file is replaced only with overwrite=true after the user approved it. Requires files:read on the API key as an explicit grant (a key whose permission list was left empty does not hold it), read or full access; the hosted connector needs vm:files:read. Availability: Firecracker servers need the updated guest agent (filesUnavailable reason agent_update_required; node_update_required while the host node is not updated yet) and Cloud VPS (KVM) servers need the VDS file-manager switch (reason feature_disabled while it is off); relay any unavailable reason verbatim and never work around it. A server whose 2FA lock is on answers 423.
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": {
"orderNo": "<orderNo>",
"path": "<path>",
"localPath": "<localPath>"
},
"name": "download_service_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path inside the server (UTF-8, at most 4096 bytes, no . or .. components) | |
| orderNo | Yes | Tenant-owned service order number, e.g. VP12345 | |
| localPath | Yes | Absolute path on the machine running this MCP server | |
| overwrite | No | ||
| waitSeconds | No | How long this tool waits for a slow guest's operation before returning its operationId (default 30, recursive delete and extract 60) |