Create file upload
create_file_uploadStart an upload for a large file, or when file bytes cannot be inlined. Returns { fileId, uploadUrl }. PUT the raw file bytes to uploadUrl with NO Authorization header (it is a short-lived pre-signed URL). Then call get_file with { fileId, wait: true } to wait until processing finishes, and pass the returned fileId to workflows, tools, logos, or B-roll. For small files, prefer upload_file.
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": {
"displayName": "<displayName>"
},
"name": "create_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Media or document kind to associate with the upload. Inferred after processing when omitted. | |
| displayName | Yes | Human-readable label used to identify the uploaded asset in the VideoGen library. | |
| isTemporary | No | When true, the file is temporary (guaranteed available for 24 hours, not analyzed for search). Defaults to false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | File id to use after uploading bytes (vg_file_...). | |
| uploadUrl | Yes | Pre-signed URL: PUT raw file bytes here with no Authorization header. |