add_media_batch
Batch import all media files from a folder into a CapCut project sequentially. Filter files by glob pattern and set image duration for efficient project setup.
Instructions
Import all media files from a folder into the project sequentially.
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>",
"folder_path": "<folder_path>"
},
"name": "add_media_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | Glob pattern to filter files (e.g., "*.mp4", "*.jpg"). Default "*" for all media. | * |
| folder_path | Yes | Absolute path to the folder containing media files. | |
| project_name | Yes | Name of the CapCut project. | |
| image_duration_ms | No | Duration for each image clip (ms). Default 5000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |