trim
Cuts a segment from a media file by specifying start and end times or duration. Uses stream copy for fast trimming without re-encoding.
Instructions
Cut/trim a segment from media file by specifying start time and end time or duration. Uses stream copy (fast, no re-encoding).
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": {
"input": "<input>",
"start": "<start>"
},
"name": "trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End time (HH:MM:SS or seconds) | |
| input | Yes | Input media file path | |
| start | Yes | Start time (HH:MM:SS or seconds, e.g., '00:01:30' or '90') | |
| output | No | Output file path | |
| duration | No | Duration (HH:MM:SS or seconds). Alternative to end |