add_video
Insert a video file into the project's main video track. Configure timeline position and trim points for precise control.
Instructions
Add a video file to the project's main video track.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the video file on disk. | |
| position_ms | No | Where to place the clip on the timeline (milliseconds). Use -1 to append after the last clip. | |
| trim_end_ms | No | End trim point in the source video (ms). Use -1 for full duration. | |
| project_name | Yes | Name of the CapCut project. | |
| trim_start_ms | No | Start trim point in the source video (ms). Default 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |