replace_audio
Replace a video's audio track with a new audio file. The output duration matches the shorter of the two inputs.
Instructions
Swap a video's audio track with another audio file. Output ends when the shortest input ends.
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": {
"video_path": "<video_path>",
"audio_path": "<audio_path>"
},
"name": "replace_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio_path | Yes | Local path to the new audio file | |
| video_path | Yes | Local path to the video |