Files
leon-ai--leon/tools/video_streaming/ytdlp/tool.json
T
2026-07-13 12:44:08 +08:00

163 lines
4.3 KiB
JSON

{
"$schema": "../../../schemas/tool-schemas/tool.json",
"tool_id": "ytdlp",
"toolkit_id": "video_streaming",
"name": "YT-DLP",
"description": "A tool for downloading videos and audio from various streaming platforms using yt-dlp.",
"icon_name": "download-cloud-2-line",
"author": {
"name": "Louis Grenard",
"email": "louis@getleon.ai",
"url": "https://twitter.com/grenlouis"
},
"binaries": {
"linux-x86_64": "https://github.com/leon-ai/leon-binaries/releases/download/yt-dlp-v2026.07.04/yt-dlp_2026.07.04-linux-x86_64",
"linux-aarch64": "https://github.com/leon-ai/leon-binaries/releases/download/yt-dlp-v2026.07.04/yt-dlp_2026.07.04-linux-aarch64",
"macosx-x86_64": "https://github.com/leon-ai/leon-binaries/releases/download/yt-dlp-v2026.07.04/yt-dlp_2026.07.04-macosx-x86_64",
"macosx-arm64": "https://github.com/leon-ai/leon-binaries/releases/download/yt-dlp-v2026.07.04/yt-dlp_2026.07.04-macosx-arm64",
"win-amd64": "https://github.com/leon-ai/leon-binaries/releases/download/yt-dlp-v2026.07.04/yt-dlp_2026.07.04-win-amd64.exe"
},
"functions": {
"downloadVideo": {
"description": "Download a single video from a URL.",
"parameters": {
"type": "object",
"properties": {
"videoUrl": {
"type": "string"
},
"outputPath": {
"type": "string"
}
},
"required": [
"videoUrl",
"outputPath"
]
}
},
"downloadAudioOnly": {
"description": "Download audio-only from a video URL.",
"parameters": {
"type": "object",
"properties": {
"videoUrl": {
"type": "string"
},
"outputPath": {
"type": "string"
},
"audioFormat": {
"type": "string"
}
},
"required": [
"videoUrl",
"outputPath",
"audioFormat"
]
}
},
"downloadPlaylist": {
"description": "Download all videos from a playlist URL.",
"parameters": {
"type": "object",
"properties": {
"playlistUrl": {
"type": "string"
},
"outputPath": {
"type": "string"
}
},
"required": [
"playlistUrl",
"outputPath"
]
}
},
"downloadVideoByQuality": {
"description": "Download a video at a specified quality.",
"parameters": {
"type": "object",
"properties": {
"videoUrl": {
"type": "string"
},
"outputPath": {
"type": "string"
},
"quality": {
"type": "string"
},
"onProgress": {
"type": "object",
"properties": {
"percentage": {
"type": "number"
},
"status": {
"type": "string"
},
"eta": {
"type": "string"
},
"speed": {
"type": "string"
},
"size": {
"type": "string"
}
},
"additionalProperties": false
}
},
"required": [
"videoUrl",
"outputPath",
"quality"
]
}
},
"downloadSubtitles": {
"description": "Download subtitles for a video. Pass languageCode only when the owner requested a specific language; otherwise omit it so the tool auto-selects from available subtitles.",
"parameters": {
"type": "object",
"properties": {
"videoUrl": {
"type": "string"
},
"outputPath": {
"type": "string"
},
"languageCode": {
"type": "string"
}
},
"required": [
"videoUrl",
"outputPath"
]
}
},
"downloadVideoWithThumbnail": {
"description": "Download a video and embed its thumbnail.",
"parameters": {
"type": "object",
"properties": {
"videoUrl": {
"type": "string"
},
"outputPath": {
"type": "string"
}
},
"required": [
"videoUrl",
"outputPath"
]
}
}
}
}