ffkit_clip
Trim a segment from a media file by providing a start time and either an end time or duration. The clipped segment is saved to a new output path.
Instructions
Trim a segment from a media file. Specify start + end or start + duration. Time format: HH:MM:SS.ms or seconds.
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_path": "<input_path>",
"output_path": "<output_path>",
"start": "<start>"
},
"name": "ffkit_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End timestamp. Mutually exclusive with duration. | |
| start | Yes | Start timestamp (e.g. '00:01:30' or '90'). | |
| duration | No | Duration of the clip. Mutually exclusive with end. | |
| input_path | Yes | Path to the source media file. | |
| output_path | Yes | Path for the trimmed output file. |