Clip a YouTube video
clip_youtube_videoCut one moment (3 to 120 seconds) out of a public YouTube video and store it in this Masonry workspace. Returns the clip and a media_id. The cut lands on pauses in the speech, and a 9:16 clip follows the speaker. For several moments call this once per moment. To finish a short, pass the media_id to combine_clips as a clip's job_id with captions from clips. Takes up to a minute. Free: costs no credits. Meant for videos the user has the right to reuse.
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": {
"url": "<url>",
"start": "<start>",
"end": "<end>"
},
"name": "clip_youtube_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Where the clip ends. A clip is 3 to 120 seconds long. | |
| url | Yes | Link to one YouTube video. | |
| start | Yes | Where the clip begins, in seconds or as a timestamp such as 1:23, taken from read_youtube_video. | |
| aspect | No | Shape of the clip: 9:16 (default, for Shorts, Reels and TikTok), 4:5, 1:1, 16:9, or source to keep the video's own frame. | |
| framing | No | How a wide video fills a tall clip: auto (default) follows the speaker shot by shot, center crops the middle, fit keeps the whole frame, stream (gaming or live streams with the streamer on camera) puts the gameplay on the top 60% and the streamer's face on the bottom 40%. |