Subtitles
video_subtitlesRead subtitles from local media files and return timestamped text segments from an explicit transcript, embedded subtitle track, or auto-discovered sibling file.
Instructions
Read subtitles for a local media file and return them as timestamped segments. (读取本地字幕文件或视频内嵌字幕轨,解析成带时间轴的段落列表。)
Two sources, in this order: an explicit transcriptFile (a local .srt, .vtt, .ass or .ssa file), or the subtitle track embedded in the container. Auto-discovery also picks up a sibling file with the same base name in the same directory (a.srt next to a.mp4) when neither of the above is available — the source and the exact path are always reported back, never silently.
No image and no pixels spent: the result is text with millisecond and second timestamps. Use media_locate to search inside the subtitles. Use media_overview if you also want to see what is on screen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Window end in seconds (closed interval, both ends included). Applicable to video and audio only. Defaults to the end of the media; a value past the end is clipped and reported. (终点,秒) | |
| path | Yes | Absolute path to a LOCAL file: video, audio recording, or document. URLs and relative paths are rejected — this server never downloads anything. (本地文件绝对路径) | |
| pages | No | Page range for document media: comma-separated 1-based page numbers and closed ranges, e.g. "3-10,15". Not applicable to video or audio. (页码范围) | |
| start | No | Window start in seconds (closed interval, both ends included). Applicable to video and audio only; document media uses "pages" instead. Default 0. (起点,秒) | |
| transcriptFile | No | Absolute path to a local subtitle/transcript file (.srt, .vtt, .ass, .ssa). Applicable to video and audio only. (本地字幕/转写文件) |