{
  "id": "youtube",
  "name": "YouTube Automation",
  "description": "Battle-tested playbook for YouTube browser automation via CDP. Covers channel management, video upload, search, like, comment, subscribe, and YouTube Studio operations.",
  "platform": "youtube",
  "version": "1.0.0",
  "urlPatterns": [
    "*youtube.com*",
    "*studio.youtube.com*"
  ],
  "tags": [
    "youtube",
    "video",
    "browser",
    "cdp",
    "google"
  ],
  "successCount": 0,
  "failCount": 0,
  "steps": [
    {
      "action": "navigate",
      "url": "https://www.youtube.com/",
      "description": "Open YouTube home feed"
    },
    {
      "action": "wait",
      "ms": 2000,
      "description": "Wait for feed to load"
    },
    {
      "action": "extract",
      "target": "ytd-rich-item-renderer",
      "format": "text",
      "description": "Extract visible video cards"
    },
    {
      "action": "scroll",
      "direction": "down",
      "amount": 5,
      "description": "Scroll for more videos"
    },
    {
      "action": "wait",
      "ms": 1000,
      "description": "Wait for lazy-loaded videos"
    },
    {
      "action": "extract",
      "target": "ytd-rich-item-renderer",
      "format": "text",
      "description": "Extract videos after scroll"
    },
    {
      "action": "screenshot",
      "description": "Capture current feed state"
    }
  ]
}
