youtube_video_query
Ask Gemini about a YouTube video. Pass a video URL and any prompt: verbatim transcript with timestamps, summary, targeted Q&A about content or visuals, translation, etc. Works on any public/unlisted video. A summary or transcript of a video longer than about 20 minutes: pass background=true; the answer comes back at once with a job_id, and the result is saved as a workspace file (call again with job_id to get it).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "youtube_video_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Optional: ask only about the video up to this time (seconds or MM:SS / HH:MM:SS). | |
| url | No | YouTube video URL (youtube.com/watch?v=…, youtu.be/…, youtube.com/shorts/…, m.youtube.com/watch?v=…). Required unless job_id is given. | |
| start | No | Optional: ask only about the video from this time on, as seconds or MM:SS / HH:MM:SS. | |
| detail | No | OMIT for the default 'low'. Frame resolution: 'low' (speech, slides and summaries; fits videos up to about two and a half hours) or 'default' (fine on-screen detail; about an hour at most, use it with start/end on long videos). | |
| job_id | No | OMIT to ask a new question. The job_id of a background job: returns its status (running / done / failed) and, when done, the file_id and text. | |
| prompt | No | What to ask Gemini about the video. Required unless job_id is given. Examples: 'Provide a verbatim transcript with [HH:MM:SS] timestamps.' / 'Summarize for the course owner.' / 'Describe what's shown on screen at 0:30.' | |
| background | No | OMIT for a direct answer (must arrive within about 85 s). true: run as a background job of up to 10 minutes; returns job_id at once and saves the result as a workspace file. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |