video_to_markdown
Convert videos into compact Markdown using captions, subtitles, or local transcription, and optionally extract on-screen text from keyframes via OCR—without spending vision tokens.
Instructions
Convert a video into compact Markdown WITHOUT spending vision tokens.
Uses the platform's captions (YouTube etc.) or embedded/sidecar subtitles; falls back to local Whisper if installed. With frames=True it also extracts on-screen text (slides, code, labels) using scene-change keyframes + local Tesseract OCR, interleaved with the transcript by timestamp.
Args: source: video URL (anything yt-dlp supports) or absolute path to a local video file. frames: also OCR on-screen text. Slower (downloads the video at <=720p). Use when visuals matter. lang: preferred transcript language code, e.g. "en" or "pt". keep_frames_dir: save the unique keyframes here so you can view only the few you really need. description: include the video description. cookies_from_browser: only if YouTube blocks requests ("confirm you're not a bot"): reuse the user's browser login, e.g. "firefox" or "chrome". Ask the user first.
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": {
"source": "<source>"
},
"name": "video_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| frames | No | ||
| source | Yes | ||
| description | No | ||
| keep_frames_dir | No | ||
| cookies_from_browser | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |