{
 "name": "scene_item_add",
 "description": "Add an existing source to a scene as a scene item, optionally at a position. A source only shows in the program output once it is an item of the program scene.",
 "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": "Place an existing source in a scene.",
  "properties": {
   "position": {
    "anyOf": [
     {
      "$ref": "#/$defs/Pair"
     },
     {
      "type": "null"
     }
    ],
    "description": "Initial position."
   },
   "scene": {
    "description": "Scene name.",
    "type": "string"
   },
   "source": {
    "description": "Source name.",
    "type": "string"
   }
  },
  "required": [
   "scene",
   "source"
  ],
  "title": "AddItemInput",
  "type": "object"
 },
 "outputSchema": {
  "$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",
  "description": "Listed scene item, preserving the existing wire fields.",
  "properties": {
   "item": {
    "description": "Item id.",
    "format": "int64",
    "type": "integer"
   },
   "position": {
    "$ref": "#/$defs/Pair",
    "description": "Canvas position."
   },
   "rotation": {
    "description": "Rotation in degrees.",
    "format": "double",
    "type": "number"
   },
   "scale": {
    "$ref": "#/$defs/Pair",
    "description": "Scale factors."
   },
   "scene": {
    "description": "Present when an item was added.",
    "type": [
     "string",
     "null"
    ]
   },
   "source": {
    "description": "Source name.",
    "type": "string"
   },
   "visible": {
    "description": "Visibility.",
    "type": "boolean"
   }
  },
  "required": [
   "item",
   "source",
   "visible",
   "position",
   "scale",
   "rotation"
  ],
  "title": "ItemOutput",
  "type": "object"
 },
 "annotations": {
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false
 }
}