capcut_add_clip
Add a video, image, or audio file to a CapCut draft timeline by copying it into assets and setting trim, position, volume, and audio fades. Dry-run by default.
Instructions
Add a video, image or audio file to a draft timeline. The file is copied into /assets/. Length and size are read from MP4/MOV/M4A/WAV files. Optional fade_in_s / fade_out_s use the same audio-fade writer as capcut_set_clip (video clips also copy audio_fade onto the video material). Times are seconds. Dry-run by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| in_s | No | Trim start inside the source. | |
| path | Yes | Absolute path of the media file. | |
| draft | Yes | Draft folder name inside the drafts root (from capcut_list_drafts). | |
| track | No | Track name (default main / audio). Use another name to layer. | |
| width | No | Source width px (default: read from file, else canvas width). | |
| height | No | Source height px (default: read from file, else canvas height). | |
| volume | No | ||
| dry_run | No | true (default): return the plan only. false: write to disk (CapCut must be closed). | |
| start_s | No | Timeline position. | |
| fade_in_s | No | Audio fade-in (audio files and the sound of video clips). | |
| duration_s | No | Length on the timeline (default: rest of the file after in_s; read from MP4/MOV/M4A/WAV). | |
| fade_out_s | No | Audio fade-out. | |
| media_duration_s | No | Full source length, if the file length cannot be read (MP3, MKV...). |