Trim audio
trim_audioSave a single MP3 or M4A clip between start and end times without re-encoding, preserving original audio quality; the input file remains unchanged.
Instructions
Save a new MP3 or M4A with only the part between a start and end time, cut without re-encoding so quality is unchanged. Use this for one clip; for several parts use split_audio. Returns the saved path and the kept range; the input is not changed.
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": {
"file": "<file>",
"start": "<start>"
},
"name": "trim_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End time. Defaults to the end of the track. | |
| file | Yes | Path to the file (absolute, or relative to the working directory). | |
| start | Yes | Start time, like "0:30" or 30. | |
| output | No | Where to save the result. Defaults to a new file next to the input. |