{
 "name": "source_create",
 "description": "Create a source of the given kind with a name and settings. Give `scene` (and optionally `position`) to also add it to that scene as an item.",
 "inputSchema": {
  "$defs": {
   "Pair": {
    "additionalProperties": false,
    "description": "Pixel position or scale factors.",
    "properties": {
     "x": {
      "description": "Horizontal component.",
      "format": "double",
      "type": "number"
     },
     "y": {
      "description": "Vertical component.",
      "format": "double",
      "type": "number"
     }
    },
    "required": [
     "x",
     "y"
    ],
    "type": "object"
   }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Source creation, optionally placing it in a scene.",
  "properties": {
   "kind": {
    "description": "Source kind id.",
    "type": "string"
   },
   "name": {
    "description": "Unique name.",
    "type": "string"
   },
   "position": {
    "anyOf": [
     {
      "$ref": "#/$defs/Pair"
     },
     {
      "type": "null"
     }
    ],
    "description": "Initial position (requires scene)."
   },
   "scene": {
    "description": "Scene receiving the source.",
    "type": [
     "string",
     "null"
    ]
   },
   "settings": {
    "additionalProperties": true,
    "description": "Kind-specific settings.",
    "type": "object"
   }
  },
  "required": [
   "kind",
   "name",
   "settings"
  ],
  "title": "CreateInput",
  "type": "object"
 },
 "outputSchema": {
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Created source.",
  "properties": {
   "item": {
    "description": "Created item id.",
    "format": "int64",
    "type": [
     "integer",
     "null"
    ]
   },
   "kind": {
    "description": "Source kind.",
    "type": "string"
   },
   "name": {
    "description": "Source name.",
    "type": "string"
   },
   "scene": {
    "description": "Scene receiving the new item.",
    "type": [
     "string",
     "null"
    ]
   }
  },
  "required": [
   "name",
   "kind"
  ],
  "title": "CreateOutput",
  "type": "object"
 },
 "annotations": {
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false
 }
}