clip_video
Extract a specific segment from a video file by defining start time and duration. This tool creates a new video clip from your source footage.
Instructions
Generate a video clip from the given video file using ffmpeg-python.
Args: input_video_path (str): Path to the source video file. start_timestamp (float, optional): Start time in seconds. Defaults to 0.0. duration (float, optional): Clip length in seconds. Defaults to 5.0.
Returns: str: Path to the generated clip, or an exception message string on failure.
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_video_path": "<input_video_path>"
},
"name": "clip_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_video_path | Yes | ||
| start_timestamp | No | ||
| duration | No |