fetch_transcript
Fetch captions from any video URL and return a cleaned text transcript, saving a .txt file to output. Uses YouTube's transcript API and yt-dlp fallback for other platforms.
Instructions
Grab an agent-friendly transcript for a video URL without downloading the media. YouTube uses youtube-transcript-api (fast); every other platform falls back to the yt-dlp caption pass. Writes a .txt (plus .vtt on request) into the output dir and returns the cleaned text.
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 | ||
| language | No | ||
| want_vtt | No | ||
| prefer_auto | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |