youtube_get_video_detail_by_url
根据 YouTube 视频链接获取公开视频详情。
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": {
"video_url": "<video_url>"
},
"name": "youtube_get_video_detail_by_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_url | Yes | YouTube 视频页面链接;支持 watch、youtu.be 短链和 Shorts 链接。从搜索结果读取详情时,直接传搜索结果里的 share_url(items[*].share_url);不要传频道链接、播放列表链接、搜索页链接或裸 video_id。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | 视频标题;不可用时为空字符串。 | |
| author | Yes | 作者或频道信息。 | |
| points | Yes | 本次成功调用的积分消耗与账户积分余额。 | |
| video_id | Yes | YouTube 视频 ID;用于识别和去重。 | |
| share_url | Yes | 可打开或分享的 YouTube 视频页面链接;不是视频播放资源链接。 | |
| like_count | Yes | 点赞数;不可用时为 null。 | |
| topic_tags | Yes | 视频关键词或话题标签;无数据时为空数组。 | |
| view_count | Yes | 观看次数;不可用时为 null。 | |
| description | Yes | 视频详情页完整描述文本;不是摘要或视频转写;不可用时为空字符串。 | |
| duration_ms | Yes | 视频时长,单位毫秒;不可用时为 null。 | |
| publish_time | Yes | 发布时间,ISO 8601 时间字符串;不可用时为空字符串。 | |
| comment_count | Yes | 评论数;不可用时为 null。 | |
| cover_image_url | Yes | 视频封面或缩略图链接;不可用时为 null。 |