name: fetching-youtube-video description: Fetches Azure Bicep community call video metadata from a YouTube URL provided by the user. Returns video title, URL, description, publish date, and detected Bicep version number. Use when the user provides a YouTube URL, or when another skill needs YouTube video metadata as input.
Fetching YouTube Video
Fetch Azure Bicep community call metadata from a URL provided by the user.
If no URL is provided, then skip.
Steps
- Extract the video ID from the URL (
watch?v=,/shorts/, oryoutu.be/formats) - Fetch
https://www.youtube.com/watch?v={video_id}and parse the HTML for:<title>→ video title<meta name="description">→ descriptionog:imagemeta tag → thumbnail URL
Version extraction
Try in this order — stop as soon as the version is found:
- Scan title and description for
v?(\d+\.\d+\.\d+) - If not found: fetch the thumbnail image (
thumbnail_url) and use vision to read the version number from it — it is displayed as large text (e.g.v0.41) in the top-left corner of the thumbnail - If still not found: ask the user: "I couldn't find the Bicep version number in the video title, description, or thumbnail. Can you please provide it?"
Output
{
"video_id": "...",
"title": "...",
"description": "...",
"published_at": "YYYY-MM-DD",
"thumbnail_url": "...",
"video_url": "https://www.youtube.com/watch?v={video_id}",
"bicep_version": "0.36.1"
}