Upload local file to NAS
zspace_uploadUpload a local file to a ZSpace NAS directory to push media or documents. Supports renaming and automatic chunked upload for large files.
Instructions
Upload a file from the local machine to a directory on the ZSpace NAS.
Use to push media or documents to the NAS. remote_dir must already exist (create it with zspace_mkdir); pass new_name to rename it on arrival. Returns the upload result from the NAS API. Mutates NAS state; a file with the same name is overwritten.
Local -> NAS, the inverse of zspace_download. Files above 64 MB go through the desktop client's sliced upload protocol (2 MB slices) automatically, because the local proxy rejects oversized single-request bodies with HTTP 413. Check zspace_pool_info for free space before large uploads.
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": {
"local_path": "<local_path>",
"remote_dir": "<remote_dir>"
},
"name": "zspace_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | No | Optional remote file name; defaults to the local basename | |
| local_path | Yes | Local filesystem path of the file to upload | |
| remote_dir | Yes | Destination directory on the NAS (absolute path) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||