Skip to main content
Glama

获取 YouTube 视频转录

get_video_transcript

Convert any YouTube video into a timestamped Markdown transcript, first trying existing subtitles and falling back to Whisper if none exist. Metadata + preview returned; full transcript saved to file.

Instructions

把 YouTube 视频转成文字稿:优先拉取现成字幕(人工 > 自动),秒级完成、不占 CPU;只有在没有合适字幕时才回退到本地 faster-whisper 从音频转录。结果落盘成 Obsidian 友好的 Markdown(frontmatter + 带时间戳章节),并缓存供重复调用秒级命中。 转录质量:Whisper 的模型档位可调。默认 large-v3-turbo 更准;要快速草稿可传 model="small"(快约 1.8 倍,但会听错常用词、甚至整段丢失)。换模型会自动让该视频的缓存失效,所以「先用 small 试、再用大模型重跑」不会重复下载。 注意:正文在 savedTo 指向的文件里,本工具只返回元数据 + 预览 + 供下一步使用的提示,不要期待它返回全文。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesYouTube 视频链接或 11 位 video id
forceNo忽略缓存,强制重新转录
modelNoWhisper 模型,不填用 YTS_MODEL(默认 large-v3-turbo)。small 约 0.36x 实时但中文质量明显更差;large-v3 更慢却不比 turbo 准。
hotwordsNo额外的领域词表(人名/术语),空格分隔、**用简体**。默认已从视频标题自动抽词,这里只补自动抽不到的名字;换词会作废缓存。
preview_lengthNo返回的预览长度:short≈1200字 / medium≈4000字 / long≈12000字。完整转录始终在落盘文件里。medium
output_languageNo后续总结/整理用什么语言,默认 auto(跟视频原声一致)。只影响 summaryHint,不改转录本身。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description goes well beyond the annotations (readOnlyHint=false, openWorldHint=true) by disclosing that results are written to a file, cached for repeated calls, and that cache invalidation occurs on model/hotword changes. It also explicitly warns that the tool returns only metadata + preview + hints, not the full transcript. This is rich, non-contradictory behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with three focused paragraphs: pipeline, model quality, and return-value warning. It is longer than strictly necessary because some details duplicate the schema, but every section adds meaningful context and the key purpose is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no sibling tools, the description carries full responsibility for return-value and artifact behavior. It covers the saved file path, cached result behavior, preview length semantics, model behavior, and the fact that the full transcript is not returned directly. An agent has enough context to invoke the tool and interpret its result correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds value on top by explaining cross-parameter cache behavior ('先用 small 试、再用大模型重跑'不会重复下载), model speed/accuracy tradeoffs, and how output_language only affects summaryHint. This supplements rather than merely repeats the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a clear verb+resource statement: '把 YouTube 视频转成文字稿' (convert YouTube video to transcript), and explains the two-mode pipeline (existing subtitles first, local faster-whisper fallback). This makes the tool's function unmistakable even without sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There are no sibling tools to contrast with, but the description gives clear usage context: it distinguishes when subtitles are used vs when audio transcription is needed, and offers concrete model-selection guidance ('要快速草稿可传 model="small"'). It does not explicitly state when not to use the tool, but that is a minor gap given no alternatives exist.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools