TranscriptLab

v1.0.0
dev.transcriptlab/transcriptlab Checked 4 days ago Published 19 days ago

Turn YouTube videos and audio or video files into searchable, exportable transcripts.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

transcriptlab_get_transcript Get YouTube transcript

Get a YouTube transcript. Use when the user gives a YouTube link or video ID and wants the transcript. Default engine=captions reads existing YouTube captions; engine=auto tries captions first and falls back to speech-to-text if unavailable; engine=stt is opt-in speech-to-text (slower, billed per audio minute — 1 credit/min standard, 10 credits/min with speaker labels). Never switch to engine=stt or engine=auto silently unless requested: only pass them when the user opts in or asks to transcribe audio. Returns the transcript, or a job id when the request outlives the synchronous window: if a…

ParameterTypeDescription
url *stringYouTube video URL or 11-character video ID.
alsoarrayAdditional formats to include in a JSON response.
chunksSplit transcript into o200k_base token chunks (true for defaults, or { max_tokens, overlap_tokens }).
cleanupbooleanStrip filler words and stray timestamps from the transcript text.
diarizebooleanLabel speakers in the transcript. Requires engine=stt or engine=auto; implies tier=premium.
enginestringcaptions (default) reads YouTube caption tracks; auto tries captions first then falls back to stt; stt transcribes audio directly (billed per audio minute).
formatstringOutput format; defaults to json.
langstringCaption language, or optional ISO 639-1 spoken language hint when engine=stt (e.g. 'ar', 'en', 'tr'). Omit to auto-detect (recommended).
markdownbooleanInclude timestamped Markdown rendering in a JSON response.
metadatabooleanInclude video metadata when available; defaults to true.
speakersstringRename diarization labels for engine=stt, e.g. "Speaker 1=Host,Speaker 2=Guest".
tierstringSpeech model tier for engine=stt; normal bills 1 credit/min, premium bills 10 credits/min and supports speaker labels. Defaults to auto.
translatestringTranslate captions to this language when available.
typestringCaption track type; defaults to any.

transcriptlab_retrieve_transcript Retrieve completed transcript

Read a YouTube transcript that is already published for this account, without starting a new fetch. Use it after transcriptlab_get_job_status reports a job done, or to re-open a variant that was delivered before. For a first request use transcriptlab_get_transcript instead. Pass the same engine/tier/diarize used for the original fetch so the read selects the matching artifact. Reading an already delivered variant is free; a never-before-delivered variant can spend credits like the original request.

ParameterTypeDescription
url *stringYouTube video URL or 11-character video ID.
cleanupboolean
diarizebooleanMust match the original fetch; implies tier=premium for engine=stt.
enginestringSelects the captions or speech-to-text artifact; must match the original fetch.
formatstring
langstringCaption language, or optional ISO 639-1 spoken language hint when engine=stt (e.g. 'ar', 'en', 'tr'). Omit to auto-detect (recommended).
metadataboolean
speakersstringSpeaker label renames; must match the original fetch.
tierstringSpeech tier for engine=stt; must match the original fetch.
translatestringTranslation target, if requested for the original fetch.
typestring

transcriptlab_discover_captions Discover caption tracks

List the caption languages and track types (manual vs generated) available for a YouTube video. Use when the user asks which languages or subtitles a video has, or before transcriptlab_get_transcript when they want a specific language. Free in transcript credits, but subject to the account monthly discovery limit.

ParameterTypeDescription
url *stringYouTube video URL or 11-character video ID.

transcriptlab_search_transcript Search a cached transcript

Search, quote, or slice a transcript already delivered to this account. Use for "find the part where...", keyword or regex lookup, or paginating a long transcript into chunks. It never starts a fetch and never charges transcript credits, so it only works on a video already cached here: deliver it first with transcriptlab_get_transcript if it is not. mode chooses the behavior: keyword matches terms, regex matches a pattern, chunk returns sequential sections.

ParameterTypeDescription
mode *stringkeyword matches terms, regex matches pattern, chunk returns sequential sections.
url *stringYouTube video URL or 11-character video ID.
case_sensitiveboolean
context_charsinteger
diarizebooleanMust match the original fetch; requires engine=stt.
enginestringSearch the captions artifact by default; engine=stt searches the speech-to-text transcript instead — use it when the video was transcribed with engine=stt.
flagsstringOptional regular expression flags.
langstring
max_tokensinteger
overlap_snippetsinteger
patternstringRequired in regex mode.
target_tokensinteger
termsarrayRequired in keyword mode.
tierstringSpeech tier for engine=stt; must match the tier the transcript was fetched with (auto resolves to whichever artifact exists).
translatestring
typestring

transcriptlab_get_job_status Check transcript job

Check whether a transcript job from transcriptlab_get_transcript has finished. Use it when that tool returned a job_id instead of a transcript. Returns status only, delivers no transcript, and spends no credits; once it reports done, read the text with transcriptlab_retrieve_transcript.

ParameterTypeDescription
job_id *stringJob id returned by transcriptlab_get_transcript.

transcriptlab_get_usage Check TranscriptLab usage

Read the account plan, remaining credits, and current-period usage, plus upgrade options. Use when the user asks about cost, balance, or limits, or before a credit-spending request.

transcriptlab_list_transcripts List transcript library

List YouTube videos whose transcripts were already delivered to this account, most recent first. Use it to find or reopen an earlier transcript. It fetches nothing and delivers no transcript. When more results exist, page with the returned cursor.

ParameterTypeDescription
cursorstringOpaque cursor returned by the previous page.
limitintegerPage size; defaults to the server default.
searchstringOptional video ID or title filter.

transcriptlab_mentions Transcript library

Composer at-mention search over the account’s transcript library, used to build the @TranscriptLab picker. App-facing only: the host calls it, it returns resource links rather than transcript text, and the model should not call it.

ParameterTypeDescription
querystringTypeahead text; may be empty.

transcriptlab_open_audio Transcribe an audio file

Entry point the host invokes when the user opens an audio or video file with this plugin: opens the uploader view and starts speech-to-text. You do not call this directly; for a file attached to the conversation use transcriptlab_transcribe_file.

ParameterTypeDescription
file *objectHost-provided handle for the opened file.
diarizebooleanLabel speakers; defaults to false. Implies tier=premium and 10 credits per audio minute.

transcriptlab_begin_audio_upload Begin audio upload

Create a signed direct-upload session for an opened audio file. App-facing only: the uploader view calls it, not the model.

ParameterTypeDescription
bytes *integer
content_type *stringMedia MIME type.
name *string

transcriptlab_start_audio_transcription Transcribe uploaded audio

Finalize a signed upload and start speech-to-text on it. App-facing only: the uploader view calls it once the file is uploaded. Spends credits per audio minute.

ParameterTypeDescription
upload_id *string
diarizebooleanLabel speakers; defaults to false. Implies tier=premium.
langstringOptional ISO 639-1 spoken language hint (e.g. "ar", "en", "es"); omit or "auto" to auto-detect.
tierstringSpeech model tier; defaults to auto (normal when available).

transcriptlab_read_audio_transcript Read uploaded-audio transcript

Read the transcript of a file uploaded through the uploader view. A pending transcription reports 202; retry shortly. App-facing only.

ParameterTypeDescription
upload_id *string
diarizeboolean
formatstring
langstring
tierstring

transcriptlab_open Open TranscriptLab

Open the TranscriptLab launcher view, where the user can work with transcripts visually and send one into the chat with "Discuss in chat". Use tab "upload" when a file needs the uploader: the user wants to pick a local audio or video file, the attached file is too large or could not be read by transcriptlab_transcribe_file, or that upload failed. Use "library" to reopen earlier transcripts, and "link" (the default) to paste a YouTube, podcast, or media link. Also offer it when the user wants a transcript but has given no link or file.

ParameterTypeDescription
tabstringWhich launcher tab to show first; defaults to link.

transcriptlab_transcribe_file Transcribe an attached audio or video file

Transcribe an audio or video file the user attached to this conversation, using speech-to-text (mp3, m4a, wav, mp4, webm and similar). Use it for an attached media file; YouTube links use transcriptlab_get_transcript instead. Spends credits per audio minute. Attachments up to 300 MB work here; larger files (up to 2 GB) use the launcher upload view. Stores the file, starts transcription, and returns an upload_id: poll transcriptlab_get_speech_transcript with it, waiting a few seconds between tries and stopping after about ten. Do not call this again for the same file. If it fails or the file is…

ParameterTypeDescription
file *objectThe attached media file.
diarizebooleanLabel speakers; defaults to false. Implies tier=premium.
langstringOptional ISO 639-1 spoken language hint (e.g. "ar", "en", "es"); omit or "auto" to auto-detect.
tierstringSpeech model tier; defaults to auto (normal when available).

transcriptlab_transcribe_media_url Transcribe a podcast or media link

Transcribe a public podcast or media link. Use it for Apple Podcasts, Spotify, TikTok, Instagram Reel/Post, RSS feed links, and direct audio/video URLs (ending in .mp3, .m4a, .wav, .mp4, .webm and similar); YouTube links use transcriptlab_get_transcript. Podcasts, Instagram and media files are transcribed with speech-to-text (billed per audio minute). TikTok links read their built-in captions only (1 credit); if a TikTok has none, tell the user and ask before retrying with engine=stt — never switch to speech-to-text silently. Returns a media_id: poll transcriptlab_get_speech_transcript with…

ParameterTypeDescription
url *stringPublic https URL of a podcast episode/show, RSS feed, TikTok video, Instagram Reel/Post, or audio/video file.
chunksSplit transcript into o200k_base token chunks (true for defaults, or { max_tokens, overlap_tokens }).
diarizebooleanLabel speakers; defaults to false. Implies tier=premium.
enginestringTikTok links default to captions (built-in captions only, never speech-to-text); other links default to stt, as they have no captions. Pass stt or auto (captions; speech-to-text when they are confirme…
langstringOptional ISO 639-1 spoken language hint (e.g. "ar", "en", "es"); omit or "auto" to auto-detect.
markdownbooleanInclude timestamped Markdown rendering on cached/completed JSON responses.
tierstringSpeech model tier; defaults to auto (normal when available).

transcriptlab_get_speech_transcript Read a speech-to-text transcript

Read the speech-to-text transcript started by transcriptlab_transcribe_file (pass upload_id) or transcriptlab_transcribe_media_url (pass media_id). Pass exactly one id. While transcription runs it returns a pending result: wait a few seconds, back off, and stop after about ten tries; if it is still pending, tell the user the job is queued instead of looping. Pass the same lang, tier, and diarize selectors used when starting transcription so the read selects the matching artifact. Reading does not start new work. Upload reads and reads by the producing account are free; media transcript reads b…

ParameterTypeDescription
diarizebooleanMust match the original transcription; implies the premium artifact.
enginestringMedia reads only: must match the engine passed to transcriptlab_transcribe_media_url, if any; defaults to auto.
formatstringDefaults to json.
langstringMust match the lang hint passed when starting transcription, if any.
media_idstringFrom transcriptlab_transcribe_media_url.
tierstringMust match the tier passed when starting transcription, if any.
upload_idstringFrom transcriptlab_transcribe_file.

transcriptlab_submit_batch Submit a batch transcript job

Queue a list of YouTube URLs as one batch job and return its job id. App-facing only. The plan caps how many URLs one job accepts.

ParameterTypeDescription
urls *arrayYouTube URLs to transcribe.

transcriptlab_transcribe_playlist List or transcribe a YouTube playlist

List a YouTube playlist's videos, or list and transcribe all of them, as one asynchronous job. Use when the user gives a playlist link or id and wants its videos or their transcripts — e.g. "summarize every video in this playlist". mode="list" (default) collects video metadata only, free beyond the listing credit; mode="transcribe" also transcribes each listed video, billed per delivered transcript variant with the same first-delivery-free rule as transcriptlab_get_transcript. Transcription is capped at 250 videos per job; with multiple playlists the effective per-playlist limit is reduced t…

ParameterTypeDescription
playlist *arrayOne or more playlist URLs (e.g. https://www.youtube.com/playlist?list=..., or any YouTube URL carrying ?list=) or bare playlist ids.
langstringCaption language for mode=transcribe. Omit it to get each video's own language.
max_videosintegerHow many newest videos to list per playlist; defaults to 100. Plan limits apply. In transcribe mode the effective per-playlist limit is reduced when multiple playlists would exceed 250 videos total.
modestringlist (default) collects metadata only; transcribe also fetches a transcript for each video.
translatestringTranslate captions to this language when available (mode=transcribe only).
typestringCaption track type for mode=transcribe; defaults to any.

transcriptlab_list_job_items List job items

Return per-video results for a batch, channel or playlist job. Page with the returned cursor.

ParameterTypeDescription
job_id *string
cursorstring
limitinteger

transcriptlab_list_monitors List channel monitors

List all configured channel/profile monitors on this account (Starter/Pro plan required).

transcriptlab_get_new_videos Get new monitor videos

Read newly discovered videos (and optional transcripts) recorded by a channel monitor. Pass since from latest_cursor to poll incrementally.

ParameterTypeDescription
monitor_id *stringMonitor ID (mon_...).
limitintegerMaximum events to return (default 20, max 100).
sinceintegerEvent cursor ID (or Unix timestamp) to read events after.

transcriptlab_create_monitor Create channel monitor

Watch a YouTube channel or TikTok/Instagram profile for new videos (Starter/Pro plan required). Monitor checks cost 0 credits; only newly transcribed videos when transcripts=true bill credits.

ParameterTypeDescription
url *stringChannel/profile URL, @handle, or UC... channel ID.
chunksSplit transcript into o200k_base token chunks (true for defaults, or { max_tokens, overlap_tokens }).
interval_minutesintegerPolling interval in minutes (15, 60, 360, or 1440; defaults to 60).
markdownbooleanInclude Markdown rendering on transcribed monitor events.
modestringTranscript engine when transcripts=true; defaults to captions (built-in captions only, never speech-to-text). audio transcribes every new upload with speech-to-text and auto falls back to it when capt…
platformstringOptional platform hint for bare handles.
seed_latestbooleanSeed last_seen_video_id with the latest existing video so historical uploads do not trigger events; defaults to true.
tabstringYouTube channel tab; defaults to videos.
transcriptsbooleanAutomatically transcribe newly detected videos (billed per delivered video); defaults to false.
webhook_urlstringOptional HTTPS webhook URL signed with X-TranscriptLab-Signature.

transcriptlab_check_monitor_now Check monitor now

Queue an immediate background check on a channel monitor. Returns right away; poll transcriptlab_get_new_videos with your saved latest_cursor for newly discovered videos after 20-30s. Costs 0 credits unless transcripts=true delivers new transcripts.

ParameterTypeDescription
monitor_id *stringMonitor ID (mon_...).

transcriptlab_delete_monitor Delete channel monitor

Delete a channel monitor and its recorded event history.

ParameterTypeDescription
monitor_id *stringMonitor ID (mon_...).