{
  "taskType": "wechat_get_article",
  "platform": "wechat",
  "name": "获取文章内容",
  "description": "获取任意文章链接页面的完整HTML内容",
  "requiredFields": [
    {
      "name": "url",
      "type": "string",
      "description": "文章页面 URL（任意 http/https 链接）"
    }
  ],
  "optionalFields": [
    {
      "name": "returnHostPatterns",
      "type": "array",
      "description": "任务结束后若存在匹配这些 URL 片段的标签页，则切回该标签页"
    }
  ],
  "nodes": [
    {
      "nodeId": "s1",
      "name": "get_article_html",
      "goal": "获取文章页面 HTML",
      "tool": "wechat_get_article_html",
      "args": {
        "url": "{{data.url}}"
      }
    },
    {
      "nodeId": "s2",
      "name": "close_article_tab",
      "goal": "采集完成后倒计时关闭文章页标签",
      "tool": "close_tab",
      "args": {
        "delayMs": 5000,
        "message": "采集完成，页面即将关闭",
        "showCountdown": true,
        "activateUrlIncludesAny": "{{data.returnHostPatterns}}",
        "activateOptional": true
      }
    }
  ]
}
