{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "ExternalAgentConfigMigrationItem": {
      "properties": {
        "cwd": {
          "description": "Null or empty means home-scoped migration; non-empty means repo-scoped migration.",
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": "string"
        },
        "itemType": {
          "$ref": "#/definitions/ExternalAgentConfigMigrationItemType"
        }
      },
      "required": [
        "description",
        "itemType"
      ],
      "type": "object"
    },
    "ExternalAgentConfigMigrationItemType": {
      "enum": [
        "AGENTS_MD",
        "CONFIG",
        "SKILLS",
        "MCP_SERVER_CONFIG"
      ],
      "type": "string"
    }
  },
  "properties": {
    "migrationItems": {
      "items": {
        "$ref": "#/definitions/ExternalAgentConfigMigrationItem"
      },
      "type": "array"
    }
  },
  "required": [
    "migrationItems"
  ],
  "title": "ExternalAgentConfigImportParams",
  "type": "object"
}