Upload video
upload_videoUpload a local MP4 or import a public HTTPS MP4 URL, then set visibility, folder, metadata, and optional deletion expiry; returns a stable asset ID for playback and management.
Instructions
Upload a local MP4 path (direct uploads up to 100 MB) or securely import a public HTTPS MP4 URL. Supports public/private access, deletion TTL, folder, collection, metadata, private URL expiry, social-ready optimization, and replay-safe idempotency. Returns the stable asset ID immediately.
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": "upload_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a local MP4. Provide exactly one of path or source_url. Direct local uploads are limited to 100 MB. | |
| folder | No | ||
| filename | No | Original filename override. Defaults to the local basename or video.mp4. | |
| metadata | No | ||
| expires_in | No | Asset deletion TTL in seconds. Omit for permanent storage. | |
| source_url | No | Public HTTPS MP4 URL for secure server-side import. Provide exactly one of path or source_url. | |
| visibility | No | ||
| social_ready | No | Start social-ready H.264/AAC fast-start optimization after upload. | |
| collection_id | No | ||
| idempotency_key | No | Replay-safe upload key. Reuse only with identical input and lifecycle settings. | |
| sign_expires_in | No | Private URL lifetime in seconds. |