Prepare a signed file upload
studio_media_upload_urlCreates an HTTPS POST upload capability bound to the user, project, role, exact file metadata and SHA-256, expiring in 15 minutes. Returns uploadUrl, uploadToken, method and expiresAt. The upload accepts raw bytes with the declared MIME Content-Type; attachment status is confirmed separately. No file bytes pass through MCP and no generation credits are spent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name, not a local path. | |
| size | Yes | ||
| purpose | Yes | The customer file role; this never selects a paid generation. | |
| mimeType | Yes | The file MIME type. | |
| projectId | Yes | The project receiving the file. Required for song, Artist DNA (artist is derived from the project) and reference attachment; no project is selected implicitly. | |
| contentHash | Yes | SHA-256 of the exact file bytes. The signed capability binds these bytes and cannot attach another file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||