create_upload
Only for a video file on the caller's side, at most 2 GB. Returns a PUT-only upload URL for one object, valid for one hour; PUT the raw bytes to it, then call caption_video with the returned jobId. Pass contentLength if you know the file's size in bytes and the URL is bound to it; leave it out if you do not. If the video is already at a direct https URL, skip this tool entirely and pass inputUrl to caption_video. A retry is safe only when it carries the same idempotencyKey; without one, each call creates a new upload.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | No | Optional. Hex SHA-256 of the file; verified after upload when provided. | |
| contentLength | No | Optional. Exact size of the file in bytes, at most 2 GB. When given it is bound into the upload URL, so a PUT of any other size is refused; when omitted the size is checked after the upload instead. | |
| idempotencyKey | No | Optional. Any string unique to this request; a retry with the same key returns the same result instead of running twice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | ||
| balance | Yes | ||
| expiresAt | Yes | ||
| uploadUrl | Yes | ||
| balanceWarning | Yes |