Read Bilibili subtitles
get_subtitlesFetch timestamped subtitles from Bilibili videos to create learning notes, summarize content, or locate exact quotes.
Instructions
读取视频某一 P 的字幕,按 "[mm:ss] 文本" 逐行返回,适合做带时间戳的笔记。
何时调用:
- 用户要总结视频、做学习笔记、提取知识点时(这是最重要的素材来源,优先于简介)。
- 需要引用原话或定位具体时间点时。
- 用户问「这个视频讲了什么」而 get_video_info 的简介太简略时。
参数:
bv_id: BV 号或完整链接,例如 "BV1GJ411x7h7"。
page: 分P序号,从 1 开始,默认 1。先用 get_video_info 查看共几 P。
start_sec: 只返回起始时间 >= 该秒数的字幕,例如 600 表示 10:00 之后。
end_sec: 只返回起始时间 <= 该秒数的字幕,例如 1200 表示 20:00 之前。
字幕过长时可分段读取:先 0-600,再 600-1200……
返回示例:
《线性代数的本质》第 1 P(向量是什么)字幕 - 中文(自动生成),共 412 行
时间范围:00:00 - 06:52
[00:00] 这个视频我们来聊向量
[00:03] 首先从物理学的角度
注意:
- AI 字幕需要登录 Cookie;部分视频没有字幕,此时会返回明确提示。
- 单次最多返回 8000 行,超出会截断并说明总行数,请用 start_sec/end_sec 分段读取。
失败时:
返回以「读取字幕失败:」开头的说明,并给出下一步建议。
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": {
"bv_id": "<bv_id>"
},
"name": "get_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| bv_id | Yes | ||
| end_sec | No | ||
| start_sec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |