{
  "title": "YouTube Channel Upload Monitor – Videos & Changes",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "channels": {
      "title": "YouTube channels or @handles",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "description": "Up to 10 UC channel IDs, exact channel or feed URLs, ASCII @handles or exact /@handle URLs. Handles require one additional public HTML request and identity validation. Use UC IDs if the handle page is unavailable.",
      "default": [],
      "prefill": [
        "UCBJycsmduvYEL83R_U4JriQ"
      ],
      "maxItems": 10
    },
    "keywords": {
      "title": "Optional title or description keywords",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "description": "Case-insensitive OR filter within the recent feed window; this does not search YouTube or older uploads.",
      "default": [],
      "prefill": [],
      "maxItems": 10
    },
    "publishedAfter": {
      "title": "Published on or after (UTC date)",
      "type": "string",
      "editor": "textfield",
      "description": "Optional YYYY-MM-DD filter on published time within the available recent feed; older history is not retrieved.",
      "default": "",
      "prefill": ""
    },
    "itemsPerChannel": {
      "title": "Recent matching entries per channel",
      "type": "integer",
      "description": "Select newest matching entries from each returned feed, up to 15. The feed may contain fewer entries.",
      "default": 3,
      "prefill": 3,
      "minimum": 1,
      "maximum": 15
    },
    "maxResults": {
      "title": "Maximum saved results",
      "type": "integer",
      "description": "Global output cap in channel input order. Setting this below the selected total marks coverage incomplete and preserves comparison history.",
      "default": 3,
      "prefill": 3,
      "minimum": 1,
      "maximum": 150
    },
    "comparePrevious": {
      "title": "Compare with saved observations",
      "type": "boolean",
      "description": "A complete first run establishes a private baseline. Incomplete sources, output, time or spending limits preserve previous history. Avoid overlapping runs for the same watchlist.",
      "default": false,
      "prefill": false
    },
    "onlyChanges": {
      "title": "Save only new or changed observations",
      "type": "boolean",
      "description": "Enables comparison. An unchanged run may legitimately save zero rows. First complete run saves all observations. No removal inference from missing sources.",
      "default": false,
      "prefill": false
    },
    "snapshotName": {
      "title": "Watchlist history name",
      "type": "string",
      "editor": "textfield",
      "description": "A stable name for this watchlist: 1–80 letters, numbers, underscores or hyphens.",
      "default": "default",
      "prefill": "default",
      "pattern": "^[-\\w]{1,80}$"
    },
    "maxRunSeconds": {
      "title": "Time budget in seconds",
      "type": "integer",
      "description": "Network requests honor the remaining budget. Smaller watchlists improve completeness. Platform timeout is also respected.",
      "default": 120,
      "prefill": 120,
      "minimum": 30,
      "maximum": 120
    }
  },
  "required": []
}
