Get an upload URL for a track or cover
studio_upload_prepareReturns a short-lived signed upload URL for one file of a draft release: the audio of one track (kind track: lossless FLAC, WAV or AIFF, 16 or 24 bit, same formats and checks as the studio upload, large WAVs are fine) or the cover (kind cover: JPEG, PNG or WebP, square, at least 1400 px, at most 20 MB). Upload the file as the raw request body with HTTP PUT (POST works too), no Authorization header, e.g. curl --fail -T "song.wav" "". The URL works for one file within 60 minutes. Then call studio_upload_finish with the upload ID to attach it. Tracks count towards the person's storage; the answer says how many bytes fit. The URL is private, never show it publicly.
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": {
"release": "<release>",
"kind": "<kind>",
"filename": "<filename>"
},
"name": "studio_upload_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | track (audio of one track) or cover (release cover image) | |
| bytes | No | File size in bytes, to check early that it fits | |
| release | Yes | Release ID or URL | |
| filename | Yes | File name, e.g. "01 Intro.wav"; the track title is taken from it unless studio_upload_finish gets a title |