{
  "id": "x-twitter",
  "name": "X/Twitter Automation",
  "description": "Battle-tested playbook for X/Twitter browser automation via CDP. Covers feed, like, reply, retweet, bookmark, create post, search, follow/unfollow, and profile viewing. X has excellent data-testid attributes for reliable selectors.",
  "platform": "x-twitter",
  "version": "1.0.0",
  "urlPatterns": [
    "*x.com*",
    "*twitter.com*"
  ],
  "tags": [
    "x",
    "twitter",
    "social",
    "browser",
    "cdp"
  ],
  "successCount": 0,
  "failCount": 0,
  "steps": [
    {
      "action": "navigate",
      "url": "https://x.com/home",
      "description": "Open X home timeline"
    },
    {
      "action": "wait",
      "ms": 2000,
      "description": "Wait for timeline to load"
    },
    {
      "action": "extract",
      "target": "article[data-testid='tweet']",
      "format": "text",
      "description": "Extract first visible tweets"
    },
    {
      "action": "scroll",
      "direction": "down",
      "amount": 5,
      "description": "Scroll down for more tweets"
    },
    {
      "action": "wait",
      "ms": 1000,
      "description": "Wait for new tweets to load"
    },
    {
      "action": "extract",
      "target": "article[data-testid='tweet']",
      "format": "text",
      "description": "Extract tweets after scroll"
    },
    {
      "action": "screenshot",
      "description": "Capture current timeline state"
    }
  ]
}
