{
  "id": "reddit",
  "name": "Reddit Automation",
  "description": "Battle-tested playbook for Reddit browser automation via CDP. Covers feed browsing, upvote/downvote, comment, create post, search, join subreddit, and profile viewing. Reddit uses shadow DOM extensively (shreddit-post, faceplate-textarea-input) and Lexical editor for text input.",
  "platform": "reddit",
  "version": "1.0.0",
  "urlPatterns": [
    "*reddit.com*"
  ],
  "tags": [
    "reddit",
    "social",
    "browser",
    "cdp",
    "shadow-dom"
  ],
  "successCount": 0,
  "failCount": 0,
  "steps": [
    {
      "action": "navigate",
      "url": "https://www.reddit.com/",
      "description": "Open Reddit home feed"
    },
    {
      "action": "wait",
      "ms": 2000,
      "description": "Wait for feed to load"
    },
    {
      "action": "extract",
      "target": "shreddit-post",
      "format": "attributes",
      "description": "Extract post titles, authors, scores from shreddit-post attributes"
    },
    {
      "action": "scroll",
      "direction": "down",
      "amount": 5,
      "description": "Scroll for more posts"
    },
    {
      "action": "wait",
      "ms": 1500,
      "description": "Wait for lazy-loaded posts"
    },
    {
      "action": "screenshot",
      "description": "Capture current feed state"
    }
  ]
}
