add_audio
Adds an audio file (music, sound effect, or voiceover) to a CapCut project, with options for timeline position, volume, and source trimming.
Instructions
Add an audio file (music, sound effect, voiceover) to the project.
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_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| volume | No | Volume level from 0.0 (silent) to 1.0 (full). Default 1.0. | |
| start_ms | No | Where to place the audio on the timeline (ms). Default 0. | |
| file_path | Yes | Absolute path to the audio file (MP3, WAV, AAC, FLAC, etc.). | |
| trim_end_ms | No | End trim in the source audio (ms). Use -1 for full duration. | |
| project_name | Yes | Name of the CapCut project. | |
| trim_start_ms | No | Start trim in the source audio (ms). Default 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |