Add video clip
add_videoAdds a video file to a draft timeline, allowing placement, trimming, and adjustment of volume, position, scale, and rotation.
Instructions
Adds a video file to a draft video track. Duration and dimensions are detected with ffprobe when available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Horizontal offset from canvas center, -1..1. Default 0. | |
| y | No | Vertical offset from canvas center, -1..1. Default 0. | |
| path | Yes | Absolute path to the video file (supports ~). | |
| draft | Yes | Target draft name. | |
| scale | No | Uniform scale factor. Default 1. | |
| volume | No | Clip volume, 0..2. Default 1. | |
| rotation | No | Rotation in degrees. Default 0. | |
| atSeconds | No | Timeline position in seconds. Defaults to the end of the track. | |
| durationSeconds | No | Clip length in seconds. Defaults to the full video. | |
| sourceStartSeconds | No | Where the clip starts inside the source video. Default 0. |