fetch_video
Retrieves a YouTube video’s title, metadata, chapters, and English transcript with timestamped sections so an agent can build flashcards from the speaker’s own words.
Instructions
STEP 1. Fetch a YouTube video's title, metadata, chapters and English transcript.
Returns {slug, title, video, sections: [{title, start_s, end_s, transcript}], transcript_path}. Sections follow the video's chapters (or ~10-minute parts if it has none); each transcript has [mm:ss] markers you can use for card timestamps. Long chapters are split into "(part k/n)" sections of at most max_chars_per_section characters. Results are cached per video.
If YouTube rate-limits or blocks the fetch, pass transcript_text (pasted captions)
or subtitle_path (.vtt/.srt), or set PODCAST_FLASHCARDS_COOKIES_BROWSER / profile
cookies_from_browser and retry.
Next: call get_card_guidelines(), read all sections, then write the deck.
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": "fetch_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| subtitle_path | No | ||
| transcript_text | No | ||
| max_chars_per_section | No |