Flash
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PODCAST_FLASHCARDS_HOME | No | Directory where decks are stored (default: ~/.podcast-flashcards/decks/). | |
| PODCAST_FLASHCARDS_COOKIES_FILE | No | Path to a Netscape-format cookies.txt file, used if YouTube blocks the download. | |
| PODCAST_FLASHCARDS_COOKIES_BROWSER | No | Browser to read cookies from (e.g. firefox), used if YouTube blocks the download. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
podcast-flashcards turns a YouTube video (podcast, lecture, talk) into a spaced-repetition flashcard deck: a web page with a review mode, an Anki deck and a Markdown file. YOU write the cards; this server has no model of its own.
Workflow: 1) fetch_video(url) 2) get_card_guidelines() 3) write the cards section by section, following the guidelines and the user's profile 4) save_deck(deck); if it returns errors, fix them and call save_deck again 5) give the user the page path. Use get_profile / update_profile to personalize (level, background, interests, ...).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| fetch_videoA | 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 Next: call get_card_guidelines(), read all sections, then write the deck. |
| get_card_guidelinesA | STEP 2. The rules for writing good flashcards, the user's profile (who the cards are for: level, background, interests, cards per section, style, language) and the exact deck JSON format that save_deck expects. Read it fully before writing cards. |
| save_deckC | STEP 3. Validate and save the deck (see save_deck_impl). |
| list_decksA | All saved decks, newest first: {ok, decks: [{slug, title, cards, created, path}], hint?}. |
| refreshB | Re-render index.html, how.html, and static for each deck from deck.json (no JSON edits). |
| get_profileB | The user's flashcard profile: name, level, background, interests, cards_per_section [min, max], style {analogies, include_numbers, math}, avoid, language. Defaults apply until the user changes them. |
| update_profileA | Merge |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| make_flashcards | Make a flashcard deck from a YouTube video (the full workflow). |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool maps to a distinct step or resource: fetch_video (ingest), get_card_guidelines (rules), save_deck (write), list_decks (read index), refresh (re-render static output), and get/update_profile. The only mild overlap is save_deck vs refresh, since both affect deck output, but the descriptions clarify that refresh regenerates HTML without touching JSON.
Names follow a verb_noun convention throughout (get_card_guidelines, save_deck, list_decks, fetch_video, get_profile, update_profile). The lone outlier is the bare verb 'refresh', a minor deviation but still clear in context.
Seven tools is well-scoped for a video-to-flashcard pipeline, with each tool earning its place across the ingest, authoring, save, and personalization stages. Nothing feels padded or redundant.
The core workflow (fetch video → guidelines → save deck → list) is covered, including profile get/update. However, the deck lifecycle has gaps: there is no way to read a single deck's contents for editing, delete a deck, or rename one, so agents can hit dead ends after save_deck.