Finish Media Upload
media_upload_finishVerify uploaded bytes and save a reusable workspace asset after presigned PUT. Returns contentHashSha256, fileSizeBytes and mimeType.
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": {
"storageKey": "<storageKey>",
"fileName": "<fileName>",
"contentType": "<contentType>",
"fileSizeBytes": "<fileSizeBytes>"
},
"name": "media_upload_finish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | Name of the uploaded file | |
| projectId | No | Optional project ID to associate the upload with. UUID string. | |
| storageKey | Yes | Storage key for the uploaded file | |
| contentType | Yes | MIME type of the file | |
| workspaceId | No | Optional workspace ID when projectId is not provided. Defaults to the user's default workspace. UUID string. | |
| fileSizeBytes | Yes | Size of the uploaded file in bytes | |
| autoTranscribe | No | Request transcription for video uploads. | |
| autoSuggestShorts | No | ||
| contentHashSha256 | No | Optional expected SHA-256; mismatching bytes are rejected before deduplication. 64-character hex string. | |
| autoProcessEnabled | No | Enable media analysis after upload. | |
| autoDescribeAfterTranscribe | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media | Yes |