summarize_video
Break a local video into scenes and caption frames so you can write a scene-by-scene summary or answer questions about its visual content.
Instructions
Understand a local video scene by scene, so you can summarize or answer questions about it.
Splits the video into shots (hard cuts and slow camera drift), captions frames from
each shot, and groups consecutive shots that show the same thing into scenes. Returns
the video length, the subjects that recur across scenes, and for each scene its time
range, what is seen and its keywords. Use it to write a summary in your own words,
scene by scene. Visual only: there is no audio or speech.
The whole video is always covered. Long or fast-cut videos are condensed: similar
neighbouring scenes are merged so the result has at most `max_scenes` scenes. A
15-minute video takes about a minute on a laptop; progress is reported while it runs.
Args:
path: Absolute path to the video (mp4, mov, mkv, avi, webm, m4v).
scene_threshold: Change score (0-1) that counts as a cut; lower = more scenes.
frames_per_shot: Frames captioned per shot (1-5), or 0 to pick by video length
(3 up to 10 min, 2 up to 30 min, then 1). More = richer but slower.
max_scenes: Merge similar neighbouring scenes down to at most this many (0 = never).
Lower it for a shorter overview of a long video.
max_shots: Stop after this many shots (0 = no limit, the default). The result
says clearly if the video was not covered to the end.
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": {
"path": "<path>"
},
"name": "summarize_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_shots | No | ||
| max_scenes | No | ||
| frames_per_shot | No | ||
| scene_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |