files.download_file
Reserve a direct download for a previously uploaded file.
Pass the file_name from files.list_uploaded_files (paths such as folder/subfolder/name.ext are supported). Vee3 returns a download_code.
Install the Vee3 CLI once with npm install -g @vee3/cli (requires Node 18+), then run vee3-get-file {download_code} ./path/to/save in the terminal. The CLI does not need an API key.
If installation fails with a TLS or certificate error (common on networks that inspect HTTPS traffic), use Node 22.15 or newer and run with NODE_OPTIONS=--use-system-ca, or configure npm to trust your network's root certificate.
Download codes can be resolved within 60 minutes of reserve.
Cost = 0 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | Relative file name or path to download. Use files.list_uploaded_files to see available names. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | No | Suggested terminal command for downloading to a local path. | |
| file_name | No | Stored file name. | |
| expires_at | No | ISO 8601 timestamp when the download code can no longer be resolved (60 minutes after reserve). | |
| size_bytes | No | Object size in bytes when known. | |
| download_id | No | Stable identifier for the reserved download. | |
| content_type | No | MIME type on the stored object when known. | |
| download_code | No | Short code to pass to the @vee3/get-file CLI. | |
| install_command | No | One-time command to install the Vee3 CLI (`npm install -g @vee3/cli`). On networks that inspect HTTPS, install may require Node 22.15+ with NODE_OPTIONS=--use-system-ca. | |
| troubleshooting | No | What to do if installation or downloading fails: re-read this tool's description via meta-tools.describe for setup and troubleshooting steps. |