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.
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": {
"project_name": "<project_name>",
"file_path": "<file_path>"
},
"name": "add_video"
}
}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 |