{
 "name": "pipeline_dump",
 "description": "pipeline dump: control and inspect OBS directly.",
 "inputSchema": {
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Empty arguments, with unknown fields rejected.",
  "properties": {},
  "title": "EmptyInput",
  "type": "object"
 },
 "outputSchema": {
  "$defs": {
   "RenderStats": {
    "description": "GetStats-style render counters.",
    "properties": {
     "active_fps": {
      "description": "Actual render FPS.",
      "format": "double",
      "type": "number"
     },
     "average_frame_time_ns": {
      "description": "Average render duration, not end-to-end latency.",
      "format": "uint64",
      "minimum": 0,
      "type": "integer"
     },
     "render_skipped_frames": {
      "description": "Frames lagged since baseline.",
      "format": "uint64",
      "minimum": 0,
      "type": "integer"
     },
     "render_total_frames": {
      "description": "Frames rendered since baseline.",
      "format": "uint64",
      "minimum": 0,
      "type": "integer"
     }
    },
    "required": [
     "active_fps",
     "average_frame_time_ns",
     "render_total_frames",
     "render_skipped_frames"
    ],
    "type": "object"
   },
   "StageStats": {
    "description": "One live pipeline stage; null values are unmeasured, never synthetic zeroes.",
    "properties": {
     "frames_dropped": {
      "description": "Dropped frames since baseline, if measured.",
      "format": "uint64",
      "minimum": 0,
      "type": [
       "integer",
       "null"
      ]
     },
     "frames_total": {
      "description": "Frames handled since the counter baseline.",
      "format": "uint64",
      "minimum": 0,
      "type": [
       "integer",
       "null"
      ]
     },
     "generation": {
      "description": "Counter generation, when the provider exposes one.",
      "format": "uint64",
      "minimum": 0,
      "type": [
       "integer",
       "null"
      ]
     },
     "latency_max_ns": {
      "description": "Observed maximum stage residence time, if measured.",
      "format": "uint64",
      "minimum": 0,
      "type": [
       "integer",
       "null"
      ]
     },
     "latency_min_ns": {
      "description": "Observed minimum stage residence time, if measured.",
      "format": "uint64",
      "minimum": 0,
      "type": [
       "integer",
       "null"
      ]
     },
     "live": {
      "description": "Currently running.",
      "type": "boolean"
     },
     "xruns": {
      "description": "Underruns/overruns since baseline, if measured.",
      "format": "uint64",
      "minimum": 0,
      "type": [
       "integer",
       "null"
      ]
     }
    },
    "required": [
     "live"
    ],
    "type": "object"
   },
   "Stages": {
    "description": "Render and device stages.",
    "properties": {
     "render": {
      "$ref": "#/$defs/StageStats",
      "description": "OBS render stage."
     },
     "vcam": {
      "$ref": "#/$defs/StageStats",
      "description": "Virtual Camera write stage."
     },
     "vmic": {
      "$ref": "#/$defs/StageStats",
      "description": "Virtual microphone stage."
     }
    },
    "required": [
     "render",
     "vcam",
     "vmic"
    ],
    "type": "object"
   },
   "StatsSnapshot": {
    "description": "Typed pipeline statistics.",
    "properties": {
     "end_to_end": {
      "$ref": "#/$defs/SyncStats",
      "description": "End-to-end sync, with explicit provenance."
     },
     "render": {
      "$ref": "#/$defs/RenderStats",
      "description": "Render counters."
     },
     "stages": {
      "$ref": "#/$defs/Stages",
      "description": "Per-stage measured counters and bounds."
     }
    },
    "required": [
     "stages",
     "end_to_end",
     "render"
    ],
    "type": "object"
   },
   "SyncStats": {
    "description": "End-to-end measurement provenance.",
    "properties": {
     "av_offset_ms": {
      "description": "Measured audio minus video offset; null until independently measured.",
      "format": "double",
      "type": [
       "number",
       "null"
      ]
     },
     "measured_from": {
      "description": "Measurement source; queue estimates are not end-to-end measurements.",
      "type": "string"
     }
    },
    "required": [
     "measured_from"
    ],
    "type": "object"
   },
   "VcamStatus": {
    "description": "Virtual Camera and its paired audio source.",
    "properties": {
     "active": {
      "description": "Video output is active.",
      "type": "boolean"
     },
     "configured": {
      "description": "Whether the registered output exists.",
      "type": "boolean"
     },
     "vmic_active": {
      "description": "Paired virtual microphone is active, when the plugin supports the query.",
      "type": [
       "boolean",
       "null"
      ]
     }
    },
    "required": [
     "configured",
     "active"
    ],
    "type": "object"
   }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Graph snapshot useful for diagnosing missing sources and outputs.",
  "properties": {
   "program": {
    "description": "Program source name.",
    "type": [
     "string",
     "null"
    ]
   },
   "sources": {
    "description": "Source names in stable order.",
    "items": {
     "type": "string"
    },
    "type": "array"
   },
   "stats": {
    "$ref": "#/$defs/StatsSnapshot",
    "description": "Current pipeline measurements."
   },
   "vcam": {
    "$ref": "#/$defs/VcamStatus",
    "description": "Virtual output state."
   }
  },
  "required": [
   "sources",
   "vcam",
   "stats"
  ],
  "title": "PipelineDump",
  "type": "object"
 },
 "annotations": {
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true
 }
}