detect_scenes
Detect video cuts and scene transitions, returning JSON timestamps, scene durations, and cut boundaries, with an optional contact-sheet preview for vision models.
Instructions
Detect video cuts and scene transitions. Returns structured timestamps, scene durations, and cut boundaries as JSON, with optional contact-sheet image preview for vision models.
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": {
"inputPath": "<inputPath>"
},
"name": "detect_scenes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputPath | Yes | Path to the source video file to analyze for scene transitions. | |
| threshold | No | Scene cut sensitivity threshold between 0.05 and 1.0. Lower values detect subtle transitions; higher values detect only dramatic scene cuts. Default: 0.3. | |
| outputPath | No | Optional destination path for a contact-sheet montage image (.png or .jpg) visualizing detected scenes. | |
| includeBase64 | No | Return base64 contact sheet image data in response for vision models when outputPath is specified. Default: true. | |
| minDurationSeconds | No | Minimum scene duration in seconds to filter out rapid flashes or micro-cuts. Default: 0.5. |