get_video_info
Fetch video details like title, duration, and description from YouTube or Bilibili. Use cookies for authenticated access.
Instructions
获取视频的基本信息,包括标题、时长、描述等。
认证配置(按优先级):
cookies_file 参数
YT_DLP_COOKIES 环境变量
浏览器 cookies(仅本地环境)
参数:
url: 视频链接 (必填)
cookies_file: cookies 文件路径,用于认证需要登录的视频 (可选)
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": {
"url": "<url>"
},
"name": "get_video_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 视频 URL | |
| cookies_file | No | cookies 文件路径,用于认证需要登录的视频 |