{
 "name": "screenshot",
 "description": "Capture a PNG screenshot of a source, or of the program output when no source is named. Returns the image plus a text item {width, height, source} (source is null for the program output). The PNG has an alpha channel (RGBA): pixels nothing was drawn on, such as an empty scene, are fully transparent, which a viewer may show as white. A source only appears in the program output once it is an item of the program scene.",
 "inputSchema": {
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Screenshot selection and requested size.",
  "properties": {
   "height": {
    "description": "Height in pixels.",
    "format": "uint32",
    "minimum": 0,
    "type": [
     "integer",
     "null"
    ]
   },
   "source": {
    "description": "Source to capture; omit for program output.",
    "type": [
     "string",
     "null"
    ]
   },
   "width": {
    "description": "Width in pixels.",
    "format": "uint32",
    "minimum": 0,
    "type": [
     "integer",
     "null"
    ]
   }
  },
  "title": "CaptureInput",
  "type": "object"
 },
 "outputSchema": {
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Captured PNG and its dimensions.",
  "properties": {
   "data": {
    "description": "PNG bytes encoded in base64.",
    "type": "string"
   },
   "height": {
    "description": "Height in pixels.",
    "format": "uint32",
    "minimum": 0,
    "type": "integer"
   },
   "source": {
    "description": "Source name, or null for program output.",
    "type": [
     "string",
     "null"
    ]
   },
   "width": {
    "description": "Width in pixels.",
    "format": "uint32",
    "minimum": 0,
    "type": "integer"
   }
  },
  "required": [
   "data",
   "width",
   "height"
  ],
  "title": "CaptureOutput",
  "type": "object"
 },
 "annotations": {
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true
 }
}