Import a long video
import_youtubeImport a long video from a link: YouTube, Twitch, Kick, or a public direct link to a video file. Checks long-video slots (max 8) first and fails with quota_exceeded if they are full; free a slot with list_videos and delete_video, then retry. Returns a job_id quickly; poll get_import_status until video_id is set, then call clip_video.
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": {
"youtube_url": "<youtube_url>"
},
"name": "import_youtube"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Transcription language code (default en) | |
| youtube_url | Yes | Video link. The name is historical: YouTube (watch, shorts, live, youtu.be), Twitch, Kick, and direct http(s) video file links all work. |