AI Edit: get upload URL
ai_edit_uploadGet a presigned PUT URL for an AI Edit source video (up to 2GB). PUT the bytes to uploadUrl, then pass the returned r2Key to create_ai_edit. (Source must be uploaded this way — its key prefix is validated.)
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": {
"fileName": "<fileName>",
"fileType": "<fileType>",
"fileSize": "<fileSize>"
},
"name": "ai_edit_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | ||
| fileSize | Yes | ||
| fileType | Yes | video/mp4 | video/webm | video/quicktime | video/x-matroska |