trim_audio
Cut audio files to specific durations by setting start time, end time, or duration parameters using FFmpeg processing capabilities.
Instructions
Trim an audio file to a specific duration
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "trim_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputPath | Yes | Path to the input audio file | |
| outputPath | Yes | Path for the output audio file | |
| startTime | No | Start time (format: HH:MM:SS.mmm or seconds) | |
| duration | No | Duration (format: HH:MM:SS.mmm or seconds) | |
| endTime | No | End time (format: HH:MM:SS.mmm or seconds) | |
| format | No | Audio format for output (mp3, aac, etc.) |