{
  "title": "Clinical Trials - Studies, Sponsors & 临床试验",
  "type": "object",
  "schemaVersion": 1,
  "description": "Minimal working input: {\"searchQuery\": \"diabetes\", \"recruitmentStatus\": \"all\", \"countryContains\": \"\"}. Default maximum 20 paid study rows; only delivered rows billed.",
  "properties": {
    "searchQuery": {
      "title": "searchQuery",
      "type": "string",
      "description": "Registry search query, e.g. \"diabetes\". Searches official study records; cannot be empty. Most recently updated studies first. No query fee.",
      "default": "diabetes",
      "editor": "textfield",
      "sectionCaption": "Source targets / 数据来源"
    },
    "recruitmentStatus": {
      "title": "recruitmentStatus",
      "type": "string",
      "description": "\"all\" or an official registry status, e.g. \"RECRUITING\". Filters studies, not individual site availability. No extra charge.",
      "default": "all",
      "editor": "select",
      "enum": [
        "all",
        "RECRUITING",
        "NOT_YET_RECRUITING",
        "ACTIVE_NOT_RECRUITING",
        "COMPLETED",
        "TERMINATED",
        "WITHDRAWN",
        "SUSPENDED",
        "UNKNOWN",
        "ENROLLING_BY_INVITATION"
      ]
    },
    "countryContains": {
      "title": "countryContains",
      "type": "string",
      "description": "Case-insensitive substring of study location country names, e.g. \"China\". Empty disables it. Not sponsor nationality. Free filter within maxPages.",
      "default": "",
      "editor": "textfield"
    },
    "maxResults": {
      "title": "maxResults",
      "type": "integer",
      "description": "Maximum paid rows across the entire run, after filters and exclusions. Example: 20. May return fewer when source pages end or maxPages is reached.",
      "default": 20,
      "minimum": 1,
      "maximum": 1000,
      "sectionCaption": "Limits / 数量限制"
    },
    "maxPages": {
      "title": "maxPages",
      "type": "integer",
      "description": "Maximum source pages per target, 1–20; default 3. Up to 50 studies per source page. Filters are free; maxResults can be lower than this scan budget.",
      "default": 3,
      "minimum": 1,
      "maximum": 20
    },
    "includeKeywords": {
      "title": "includeKeywords",
      "type": "array",
      "description": "Case-insensitive OR substring filter on title and summary. Example: [\"battery\"]. Empty [] disables it. Applied before billing inside the page budget; not a semantic classifier or additional source search.",
      "default": [],
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "maxItems": 20,
      "sectionCaption": "Filters and repeat runs / 筛选与去重"
    },
    "excludeIds": {
      "title": "excludeIds",
      "type": "array",
      "description": "Copy prior output id values here to skip before billing. id is the NCT study identifier. Empty [] disables it. This also suppresses changes to existing IDs.",
      "default": [],
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "maxItems": 5000
    },
    "excludeContentHashes": {
      "title": "excludeContentHashes",
      "type": "array",
      "description": "SHA-256 content_hash values from previous output to skip unchanged snapshots before billing. Example: copy returned hashes. Empty [] disables it. Changed counters or content can produce a new paid snapshot.",
      "default": [],
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "maxItems": 5000
    }
  },
  "additionalProperties": false
}
