fetch_transcript
Retrieves a YouTube video transcript as compact JSON or markdown, delivering cached, token-efficient text for AI context. Returns segments with timestamps, provenance, and content hash in one fetch.
Instructions
Fetch a YouTube video transcript. Returns compact JSON (default) or markdown. Defaults to segments-only for token efficiency. Cached by language preference. Retries only transient errors. Includes provenance, caption type, and verifiable content hash.
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_transcript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | YouTube video URL (watch, youtu.be, shorts, embed) | |
| title | No | Manual title override | |
| format | No | Response format. JSON is compact (no indent). | json |
| output | No | Transcript representation. 'segments' (default): array of {text,start,end}. 'text': readable string. 'both': both. Markdown always renders text. | segments |
| channel | No | Manual channel override | |
| languages | No | Comma-separated language codes in priority order (default: sv,en) | sv,en |
| published | No | Manual date (YYYY-MM-DD) | |
| bypass_cache | No | Force fresh fetch | |
| include_timestamps | No | Include HH:MM:SS per line in text output |