Get Bilibili video info
get_video_infoRetrieve detailed metadata for a single Bilibili video—title, description, uploader, duration, stats, and part list with cid—to inspect content or confirm parts before fetching subtitles or comments.
Instructions
读取单个 B 站视频的详细信息:标题、简介、UP主、分P列表(含 cid)、互动数据、时长。
何时调用:
- 用户给了 BV 号或视频链接,想了解这个视频讲了什么时。
- 调用 get_subtitles 或 get_hot_comments 之前,先确认分P数量和 cid。
- 视频没有字幕时,用简介判断内容是否值得看。
参数:
bv_id: BV 号或完整链接。支持 "BV1GJ411x7h7"、
"https://www.bilibili.com/video/BV1GJ411x7h7"、
"https://www.bilibili.com/video/BV1GJ411x7h7?p=2" 等写法。
注意 BV 号主体区分大小写,请原样复制,不要手打。
返回示例:
标题:线性代数的本质
BV号:BV1GJ411x7h7 | AV号:8047632
UP主:3Blue1Brown
时长:1:02:03(3723 秒)
播放:1234.5万 | 点赞:8.9万 | 收藏:3.2万 | 投币:1.1万 | 评论:4321
发布时间:2020-05-01
链接:https://www.bilibili.com/video/BV1GJ411x7h7
简介:
(最多 800 字,超出会标注「已截断」)
分P列表(共 2 P):
P1 | cid=12345678 | 00:12:34 | 向量是什么
P2 | cid=12345679 | 00:15:01 | 线性组合
失败时:
返回以「获取视频信息失败:」开头的说明。BV 号格式错误时会提示正确写法,
视频不存在或被删除时会说明原因,不要用同样的参数重试。
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_video_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bv_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |