{
  "_meta": {
    "description": "GitHub 代码导览：跳转到指定文件 → 高亮行范围 → 字幕解说。适合讲解一段关键代码。",
    "params": {
      "file_url": {
        "required": true,
        "description": "GitHub blob 文件 URL，如 https://github.com/user/repo/blob/main/src/x.py"
      },
      "start_line": {
        "required": true,
        "description": "起始行号（含）"
      },
      "end_line": {
        "required": true,
        "description": "结束行号（含）"
      },
      "label": {
        "default": "关键代码",
        "description": "行高亮旁的标签"
      },
      "caption_text": {
        "default": "重点看这里",
        "description": "下方字幕条文字"
      },
      "highlight_color": {
        "default": "#ff9500",
        "description": "行高亮颜色"
      },
      "line_pattern": {
        "default": "[data-line-number=\"{n}\"]",
        "description": "行选择器模板（{n} 替换为行号）。新版 React Blob 默认值即可；旧版 blob 表格用 \"#LC{n}\""
      }
    }
  },
  "url": "{{file_url}}",
  "viewport": [1440, 900],
  "waitForReadySelectors": [
    "[data-line-number=\"1\"], #LC1"
  ],
  "settleMs": 1500,
  "transition": { "fadeOutMs": 280, "gapMs": 150 },
  "scenes": [
    {
      "type": "code-lines",
      "startLine": "{{start_line}}",
      "endLine": "{{end_line}}",
      "linePattern": "{{line_pattern}}",
      "color": "{{highlight_color}}",
      "label": "{{label}}",
      "duration": 4000
    },
    {
      "type": "caption",
      "text": "{{caption_text}}",
      "position": "bottom",
      "duration": 3500
    }
  ]
}
