Export a clip
video_clipCut a time range from a video into its own MP4 with audio, using instant stream copy or exact re-encoding for frame-accurate cuts.
Instructions
Cut a time range into its own MP4 with audio. Stream copy is instant; exact re-encodes.
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": {
"video_id": "<video_id>",
"start": "<start>",
"end": "<end>"
},
"name": "video_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Clip end in seconds. | |
| exact | No | Re-encode for frame-accurate cuts; off snaps to keyframes. | |
| start | Yes | Clip start in seconds. | |
| video_id | Yes | Video id from video_list or an ingest result. | |
| output_dir | No | Folder to write into (under DVQA_ALLOWED_ROOTS). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The MP4 written. | |
| exact | Yes | True when re-encoded for frame-accurate cuts. | |
| duration | Yes | Seconds. | |
| has_audio | Yes | Whether the clip has sound. | |
| size_bytes | Yes | File size. |