Get direct upload link
get_direct_upload_urlA link to upload one big file (up to 5,000 MiB: videos, archives) straight to storage, without passing through Studio or the app. size: the file's size in bytes. In an app: the server asks for the link with STORAGE_TOKEN (POST {STORAGE_URL}//direct-upload {path,size,contentType}) and hands only the link to the browser, which uploads in parts with @azure/storage-blob (uploadData); from a terminal: the curl in the answer. finish_direct_upload with the uploadId completes it: Studio checks the size and puts the file at its path.
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>",
"bucket": "<bucket>",
"path": "<path>",
"size": "<size>"
},
"name": "get_direct_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path in the bucket, e.g. videos/clip.mp4 | |
| size | Yes | File size in bytes | |
| bucket | Yes | Bucket name | |
| project | Yes | Project slug | |
| contentType | No | Content type (optional; guessed from the file name) |