Analyze a video
analyze_videoAsk Gemini about a video's visuals and audio from a local path, YouTube link, or Instagram post to get answers, summaries, or timestamped chapters.
Instructions
Ask Gemini about the pictures and audio in a video. Supply an absolute local video path, a public YouTube link, or a public Instagram video post. Omit the prompt for timestamped chapters and visual observations. The reply includes token usage when supplied by the provider. Set fps for fixed sampling or start/end for a time range. Instagram links require yt-dlp. Use gemini_chat to compare several clips in context. Local files are included inline in each generateContent request to the configured provider.
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": {
"url": "<url>"
},
"name": "analyze_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Clip end, using the same formats as start. | |
| fps | No | Frames per second, greater than 0 and at most 24. Use 0.5 for one frame every two seconds. Can be combined with start, end, and detail. | |
| url | Yes | Public YouTube video URL, Instagram reel or video post URL, or an absolute local video path, e.g. /media/talk.mp4. | |
| mode | No | generateContent uses static sampling for every mode. | |
| model | No | Provider model ID for this call. An explicit selection is pinned for the request. Otherwise the configured model applies. | |
| start | No | Clip start. Use a timecode (12:30 or 1:02:30), seconds (750s), or numeric milliseconds. | |
| detail | No | Normal or high detail. High detail uses static sampling at high resolution for small text, code, or other fine details. | |
| prompt | No | Question about the video. Defaults to a summary with timestamped chapters. |