Youtube Search In Transcript
youtube_search_in_transcriptSearch a YouTube video's transcript for a keyword or phrase and return only matching segments with timestamps, avoiding the need to fetch the entire transcript.
Instructions
Search inside a video's transcript and return only the matching segments.
A case-insensitive substring search over the caption segments, done server-side, so a
narrow question ("does this video mention Kubernetes?") costs a few hundred tokens
instead of the whole transcript. Returns matching segments with their start seconds
(deep-link ready), total_matches across the whole transcript, and up to 20 matches
per page.
Limitations: matching is per caption segment, so a phrase spanning a segment boundary
will not match; the query is a literal substring, not a boolean/regex expression. Pass
cursor back to page through more than 20 matches; next_cursor: null means you have
the last page. language selects the caption track (defaults to the configured
language). Costs no Data API quota; cached like the other transcript tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| cursor | No | ||
| language | No | ||
| video_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| matches | Yes | ||
| video_id | Yes | ||
| truncated | Yes | ||
| next_cursor | Yes | ||
| language_code | Yes | ||
| total_matches | Yes |