{
  "components": {
    "responses": {
      "BadRequest": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "Invalid request (code invalid_argument, invalid_op, invalid_json, ...)."
      },
      "Conflict": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress)."
      },
      "EngineError": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "The live engine refused or failed (stage engine / engine_dispatch)."
      },
      "Forbidden": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "insufficient_scope, editor_required, owner_required or pro_mode_required."
      },
      "NotFound": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "Unknown or invisible resource (ids are not probeable)."
      },
      "PreconditionFailed": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "If-Match / expected revision no longer current."
      },
      "PreconditionRequired": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "expected_revision_required (send If-Match), or username_required."
      },
      "ServiceUnavailable": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded."
      },
      "TooManyRequests": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "Rate budget exhausted; see Retry-After."
      },
      "Unauthorized": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "Missing, invalid or expired bearer token."
      },
      "UnprocessableEntity": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "Idempotency-Key reused with a different body."
      }
    },
    "schemas": {
      "AiCommandResult": {
        "description": "The MCP mozart_ai_command result.",
        "properties": {
          "canUndo": {
            "type": "boolean"
          },
          "jobId": {
            "description": "Set for a background generation (poll getMozartAiJob).",
            "type": [
              "string",
              "null"
            ]
          },
          "modelChoice": {
            "type": [
              "object",
              "null"
            ]
          },
          "needsClarification": {
            "type": "boolean"
          },
          "ok": {
            "type": "boolean"
          },
          "projectId": {
            "type": "string"
          },
          "reply": {
            "type": "string"
          },
          "status": {
            "type": [
              "string",
              "null"
            ]
          },
          "steps": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          },
          "trackId": {
            "type": "string"
          },
          "undoActionId": {
            "type": [
              "string",
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "projectId"
        ],
        "type": "object"
      },
      "AiJob": {
        "properties": {
          "clipId": {
            "type": [
              "string",
              "null"
            ]
          },
          "durationSec": {
            "type": [
              "number",
              "null"
            ]
          },
          "elapsedSec": {
            "type": [
              "number",
              "null"
            ]
          },
          "jobId": {
            "type": "string"
          },
          "laneId": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastStep": {},
          "reply": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "description": "queued | running | done | failed | cancelled | timeout | unknown",
            "type": "string"
          }
        },
        "required": [
          "jobId",
          "status"
        ],
        "type": "object"
      },
      "AutomationEnvelope": {
        "properties": {
          "clipId": {
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "defaultValue": {
            "type": "number"
          },
          "durationSec": {
            "description": "Lane envelopes only: window length; outside [startSec, startSec + durationSec] the lane's saved fader / pan applies.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "laneId": {
            "description": "Lane envelopes only.",
            "type": "string"
          },
          "persisted": {
            "description": "false = the synthesized default clip-gain curve (no id; create one to edit it).",
            "type": "boolean"
          },
          "points": {
            "items": {
              "$ref": "#/components/schemas/AutomationPoint"
            },
            "type": "array"
          },
          "projectId": {
            "type": "string"
          },
          "revision": {
            "minimum": 0,
            "type": "integer"
          },
          "startSec": {
            "description": "Lane envelopes only: timeline second the envelope starts at (points' timeSec is relative to it).",
            "minimum": 0,
            "type": "number"
          },
          "target": {
            "$ref": "#/components/schemas/AutomationTarget"
          },
          "targetKey": {
            "type": "string"
          },
          "targetKind": {
            "enum": [
              "clip_gain",
              "plugin_parameter",
              "lane_volume",
              "lane_pan"
            ],
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "valueType": {
            "enum": [
              "continuous",
              "discrete",
              "boolean"
            ],
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "clipId",
          "targetKey",
          "points",
          "revision",
          "persisted"
        ],
        "type": "object"
      },
      "AutomationEnvelopeResult": {
        "properties": {
          "envelope": {
            "$ref": "#/components/schemas/AutomationEnvelope"
          },
          "live": {
            "$ref": "#/components/schemas/AutomationLiveReconcile"
          }
        },
        "required": [
          "envelope"
        ],
        "type": "object"
      },
      "AutomationLiveReconcile": {
        "properties": {
          "applied": {
            "description": "true = the running engine session took the change (the next audio block hears it).",
            "type": "boolean"
          },
          "reason": {
            "description": "Why it was not applied live. The saved change still stands; the next session load plays it.",
            "enum": [
              "no_live_session",
              "engine_rejected",
              "engine_unreachable"
            ],
            "type": "string"
          }
        },
        "required": [
          "applied"
        ],
        "type": "object"
      },
      "AutomationPoint": {
        "properties": {
          "curve": {
            "description": "Segment shape to the next point. hold = step. db = linear in decibels (clip gain only). Non-continuous envelopes always store hold.",
            "enum": [
              "linear",
              "bezier",
              "hold",
              "db"
            ],
            "type": "string"
          },
          "meta": {
            "description": "Optional caller metadata (<= 1 KB per point, 256 KB per envelope), returned unchanged.",
            "type": "object"
          },
          "tension": {
            "description": "bezier only",
            "maximum": 1,
            "minimum": -1,
            "type": "number"
          },
          "timeSec": {
            "description": "Seconds from the clip start, stored at full double precision. Two points with the SAME timeSec form a discontinuity pair: the first is the value approached from the left, the second the value from that time on (at most two are kept per time: the first and last in input order).",
            "minimum": 0,
            "type": "number"
          },
          "value": {
            "maximum": 1,
            "minimum": 0,
            "type": "number"
          }
        },
        "required": [
          "timeSec",
          "value"
        ],
        "type": "object"
      },
      "AutomationTarget": {
        "properties": {
          "kind": {
            "description": "clip_gain / plugin_parameter on clips; lane_volume (gain = 4 * value, 0.25 = unity) / lane_pan (pan = 2 * value - 1, 0.5 = center) on lanes.",
            "enum": [
              "clip_gain",
              "plugin_parameter",
              "lane_volume",
              "lane_pan"
            ],
            "type": "string"
          },
          "name": {
            "maxLength": 128,
            "type": "string"
          },
          "options": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "paramIndex": {
            "type": "integer"
          },
          "pluginIndex": {
            "type": "integer"
          },
          "pluginInstanceId": {
            "maxLength": 128,
            "type": "string"
          },
          "stableParamId": {
            "maxLength": 128,
            "type": "string"
          },
          "stepCount": {
            "type": "integer"
          },
          "unit": {
            "maxLength": 32,
            "type": "string"
          }
        },
        "required": [
          "kind"
        ],
        "type": "object"
      },
      "Bus": {
        "properties": {
          "busId": {
            "type": "string"
          },
          "displayOrder": {
            "type": [
              "integer",
              "null"
            ]
          },
          "gain": {
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "muted": {
            "type": "boolean"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "pluginChain": {
            "items": {},
            "type": "array"
          },
          "polarityInverted": {
            "type": "boolean"
          },
          "soloed": {
            "type": "boolean"
          },
          "stereoSeparation": {
            "default": 0,
            "maximum": 1,
            "minimum": -1,
            "type": "number"
          },
          "swapLr": {
            "type": "boolean"
          }
        },
        "required": [
          "busId"
        ],
        "type": "object"
      },
      "BusPluginRestoreState": {
        "properties": {
          "addBusPlugin": {
            "description": "Ready-to-send addBusPlugin body that undoes the delete (null when the plug-in is not a catalog hosted effect).",
            "type": [
              "object",
              "null"
            ]
          },
          "bypassed": {
            "type": "boolean"
          },
          "instanceId": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "parameters": {
            "additionalProperties": {
              "type": "number"
            },
            "description": "Host parameters (index -> normalized value) at delete time, for reference (the state chunk carries them).",
            "type": "object"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "state": {
            "description": "The plug-in's saved chunk (base64), read from the running plug-in just before the delete; null when it had none or it exceeds 4 MiB (stateOmitted).",
            "type": [
              "string",
              "null"
            ]
          },
          "stateEncoding": {
            "enum": [
              "base64",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "stateOmitted": {
            "enum": [
              "too_large"
            ],
            "type": "string"
          },
          "stateSignature": {
            "description": "Send back as addBusPlugin state_signature with this exact state.",
            "maxLength": 128,
            "type": "string"
          },
          "typeId": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "bypassed"
        ],
        "type": "object"
      },
      "BusPluginState": {
        "properties": {
          "busId": {
            "type": "string"
          },
          "plugins": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "projectId": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "busId",
          "plugins"
        ],
        "type": "object"
      },
      "BusResult": {
        "properties": {
          "bus": {
            "$ref": "#/components/schemas/Bus"
          },
          "liveEngine": {
            "description": "Whether the project's OPEN engine session took the change at once (the bus channel is created / updated / removed live, exactly like the Studio's bus mixer), so a send or routing to a new bus works without engine:reload. No session is ever opened for this; reason no_live_session = nothing was open (the next session load builds the bus).",
            "properties": {
              "applied": {
                "description": "true = the running engine session took the change (the next audio block hears it).",
                "type": "boolean"
              },
              "reason": {
                "description": "Why it was not applied live. The saved change still stands; the next session load plays it.",
                "enum": [
                  "no_live_session",
                  "engine_rejected",
                  "engine_unreachable"
                ],
                "type": "string"
              }
            },
            "required": [
              "applied"
            ],
            "type": "object"
          },
          "ok": {
            "type": "boolean"
          },
          "projectId": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CatalogInstrument": {
        "properties": {
          "availability": {
            "properties": {
              "checked": {
                "type": "boolean"
              },
              "installed": {
                "type": [
                  "boolean",
                  "null"
                ]
              }
            },
            "required": [
              "checked",
              "installed"
            ],
            "type": "object"
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "creatable": {
            "description": "createInstrumentLane accepts it.",
            "type": "boolean"
          },
          "format": {
            "type": "string"
          },
          "free": {
            "description": "Free to use. Enterprise organization members only see and create free instruments.",
            "type": "boolean"
          },
          "id": {
            "description": "Catalog id (the engine generator type id). Opaque.",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "patchCatalog": {
            "description": "Captured patch catalog (patches by name).",
            "type": [
              "string",
              "null"
            ]
          },
          "segment": {
            "description": "Engine load route segment.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "creatable",
          "availability"
        ],
        "type": "object"
      },
      "CatalogPlugin": {
        "properties": {
          "availability": {
            "properties": {
              "checked": {
                "type": "boolean"
              },
              "installed": {
                "type": [
                  "boolean",
                  "null"
                ]
              }
            },
            "required": [
              "checked",
              "installed"
            ],
            "type": "object"
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "format": {
            "enum": [
              "vst3",
              "native"
            ],
            "type": "string"
          },
          "free": {
            "description": "Free to use (native effects and free plug-ins). Enterprise organization members only see and add free plug-ins.",
            "type": "boolean"
          },
          "hasEditor": {
            "description": "Whether the plug-in has an editor window (openPluginEditor / getPluginEditorFrame). false for native effects: those answer 409 editor_not_available; use their parameters.",
            "type": "boolean"
          },
          "id": {
            "description": "Catalog id (the engine type id). Opaque.",
            "type": "string"
          },
          "kind": {
            "enum": [
              "effect",
              "instrument"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "parameterCount": {
            "type": [
              "integer",
              "null"
            ]
          },
          "presetCatalog": {
            "description": "list_effect_presets kind",
            "type": [
              "string",
              "null"
            ]
          },
          "presets": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "requiresPro": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "kind",
          "format",
          "availability",
          "hasEditor"
        ],
        "type": "object"
      },
      "CatalogSoundPreview": {
        "additionalProperties": false,
        "properties": {
          "assetId": {
            "description": "The sound / sound pack the row belongs to.",
            "type": "string"
          },
          "durationSec": {
            "type": [
              "number",
              "null"
            ],
            "x-unit": "seconds"
          },
          "expiresAt": {
            "format": "date-time",
            "type": "string"
          },
          "expiresInSec": {
            "minimum": 0,
            "type": "integer",
            "x-unit": "seconds"
          },
          "itemId": {
            "description": "The browseCatalogSounds row id.",
            "type": "string"
          },
          "mimeType": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "previewRequiresAuth": {
            "description": "true: fetch previewUrl with your Authorization header (API-streamed audio); false: fetch it with no credentials (direct storage URL).",
            "type": "boolean"
          },
          "previewUrl": {
            "description": "Where to fetch this one sound's audio. When previewRequiresAuth is false it is a short-lived, read-only storage URL that needs no Freestyle credentials (do not send your bearer token to it), supports HTTP Range, and is a bearer secret: do not log, store or share it; request a new one after expiresAt. When previewRequiresAuth is true (sounds stored encrypted) it is the Freestyle API path of streamCatalogSoundPreview: GET it with your bearer token (supports Range).",
            "type": "string"
          }
        },
        "required": [
          "itemId",
          "previewUrl",
          "expiresAt",
          "expiresInSec"
        ],
        "type": "object"
      },
      "Clip": {
        "properties": {
          "audioOffsetSec": {
            "description": "Seconds into the source file where the audible region begins (left trim).",
            "type": "number",
            "x-unit": "seconds"
          },
          "audioSourceId": {
            "description": "Opaque id of the audio this clip plays, null when the clip has no stored audio. Clips that play the same audio (the pieces of a split, a duplicate, a paste) share it, and it changes when the clip's audio is replaced (sample edit, in-place region effect, voice-model or tempo render), so it is the key for a client peak cache: a clip whose audioSourceId is already cached needs no getClipWaveform read. Compare it for equality only; it is not the waveform's revision. Absent on a backend that predates it.",
            "type": [
              "string",
              "null"
            ]
          },
          "clipMuted": {
            "type": "boolean"
          },
          "durationSec": {
            "description": "Audible length in seconds (after trimming).",
            "type": [
              "number",
              "null"
            ],
            "x-unit": "seconds"
          },
          "editUrl": {
            "type": "string"
          },
          "fadeIn": {
            "description": "Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.",
            "properties": {
              "curve": {
                "enum": [
                  "linear",
                  "equal_power",
                  "exp",
                  "log",
                  "s_curve"
                ],
                "type": "string"
              },
              "durationSec": {
                "minimum": 0,
                "type": "number",
                "x-unit": "seconds"
              }
            },
            "type": [
              "object",
              "null"
            ]
          },
          "fadeOut": {
            "description": "Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.",
            "properties": {
              "curve": {
                "enum": [
                  "linear",
                  "equal_power",
                  "exp",
                  "log",
                  "s_curve"
                ],
                "type": "string"
              },
              "durationSec": {
                "minimum": 0,
                "type": "number",
                "x-unit": "seconds"
              }
            },
            "type": [
              "object",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "isBacking": {
            "type": "boolean"
          },
          "isImported": {
            "type": "boolean"
          },
          "laneId": {
            "type": [
              "string",
              "null"
            ]
          },
          "muted": {
            "type": "boolean"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "parked": {
            "description": "Present (true) only on a PARKED take: the earlier take of a live / Endless / group-session lane that a re-record parked instead of deleting. Always muted; restored from the Studio timeline.",
            "type": "boolean"
          },
          "sourceDurationSec": {
            "description": "Full length in seconds of the clip's source audio file (untrimmed), null when not known. A slip or a right-edge un-trim stays within it: audioOffsetSec + durationSec <= sourceDurationSec. Read-only (derived from the stored audio file); clips:batch never takes it.",
            "type": [
              "number",
              "null"
            ],
            "x-unit": "seconds"
          },
          "startMs": {
            "description": "Where the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).",
            "type": "integer",
            "x-unit": "milliseconds"
          },
          "takeGroupId": {
            "description": "Present only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).",
            "type": "string"
          },
          "takeIndex": {
            "description": "Order inside the stack, 0 = oldest pass. Present with takeGroupId.",
            "minimum": 0,
            "type": "integer"
          },
          "updatedAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "volume": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "startMs",
          "audioOffsetSec"
        ],
        "type": "object"
      },
      "ClipBatchOp": {
        "properties": {
          "audio_offset_sec": {
            "description": "Seconds into the source file where the audible region begins.",
            "minimum": 0,
            "type": "number",
            "x-unit": "seconds"
          },
          "duration_sec": {
            "description": "Audible length in seconds.",
            "exclusiveMinimum": 0,
            "type": "number",
            "x-unit": "seconds"
          },
          "expected": {
            "properties": {
              "audio_offset_sec": {
                "description": "Seconds into the source file where the audible region begins.",
                "minimum": 0,
                "type": "number",
                "x-unit": "seconds"
              },
              "duration_sec": {
                "description": "Audible length in seconds.",
                "exclusiveMinimum": 0,
                "type": "number",
                "x-unit": "seconds"
              },
              "start_ms": {
                "description": "Timeline start of the audible region, ms from the project start.",
                "minimum": 0,
                "type": "number",
                "x-unit": "milliseconds"
              }
            },
            "type": "object"
          },
          "id": {
            "maxLength": 64,
            "type": "string"
          },
          "op": {
            "enum": [
              "update",
              "insert",
              "remove",
              "restore"
            ],
            "type": "string"
          },
          "source_id": {
            "maxLength": 64,
            "type": "string"
          },
          "start_ms": {
            "description": "Timeline start of the audible region, ms from the project start.",
            "minimum": 0,
            "type": "number",
            "x-unit": "milliseconds"
          }
        },
        "required": [
          "op",
          "id"
        ],
        "type": "object"
      },
      "ClipBatchUndo": {
        "properties": {
          "inverse_ops": {
            "description": "POST as clips:batch ops to undo (null on a replay of an already-committed batch, or when a touched clip's prior state was unknown).",
            "items": {
              "$ref": "#/components/schemas/ClipBatchOp"
            },
            "type": [
              "array",
              "null"
            ]
          },
          "reason": {
            "type": "string"
          },
          "tool": {
            "enum": [
              "apply_clip_batch"
            ],
            "type": "string"
          }
        },
        "required": [
          "inverse_ops"
        ],
        "type": "object"
      },
      "ClipFadesResult": {
        "properties": {
          "changed": {
            "type": "boolean"
          },
          "clip": {
            "$ref": "#/components/schemas/Clip"
          },
          "engine_applied": {
            "type": "boolean"
          },
          "engine_reload_required": {
            "type": "boolean"
          },
          "fadeIn": {
            "description": "Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.",
            "properties": {
              "curve": {
                "enum": [
                  "linear",
                  "equal_power",
                  "exp",
                  "log",
                  "s_curve"
                ],
                "type": "string"
              },
              "durationSec": {
                "minimum": 0,
                "type": "number",
                "x-unit": "seconds"
              }
            },
            "type": [
              "object",
              "null"
            ]
          },
          "fadeOut": {
            "description": "Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.",
            "properties": {
              "curve": {
                "enum": [
                  "linear",
                  "equal_power",
                  "exp",
                  "log",
                  "s_curve"
                ],
                "type": "string"
              },
              "durationSec": {
                "minimum": 0,
                "type": "number",
                "x-unit": "seconds"
              }
            },
            "type": [
              "object",
              "null"
            ]
          },
          "projectId": {
            "type": "string"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          },
          "undo": {
            "properties": {
              "clip_id": {
                "type": "string"
              },
              "fade_in": {
                "properties": {
                  "curve": {
                    "enum": [
                      "linear",
                      "equal_power",
                      "exp",
                      "log",
                      "s_curve"
                    ],
                    "type": "string"
                  },
                  "duration_sec": {
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "fade_out": {
                "properties": {
                  "curve": {
                    "enum": [
                      "linear",
                      "equal_power",
                      "exp",
                      "log",
                      "s_curve"
                    ],
                    "type": "string"
                  },
                  "duration_sec": {
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "op": {
                "enum": [
                  "fades"
                ],
                "type": "string"
              }
            },
            "required": [
              "op",
              "clip_id",
              "fade_in",
              "fade_out"
            ],
            "type": "object"
          }
        },
        "required": [
          "projectId",
          "clip",
          "fadeIn",
          "fadeOut",
          "engine_applied",
          "engine_reload_required",
          "undo"
        ],
        "type": "object"
      },
      "ClipGainResult": {
        "properties": {
          "changed": {
            "type": "boolean"
          },
          "clip": {
            "$ref": "#/components/schemas/Clip"
          },
          "engine_applied": {
            "type": "boolean"
          },
          "engine_reload_required": {
            "type": "boolean"
          },
          "gain": {
            "description": "The saved clip gain (linear, 1 = unity); also clip.volume.",
            "maximum": 4,
            "minimum": 0,
            "type": "number"
          },
          "projectId": {
            "type": "string"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          },
          "undo": {
            "properties": {
              "clip_id": {
                "type": "string"
              },
              "gain": {
                "maximum": 4,
                "minimum": 0,
                "type": "number"
              },
              "op": {
                "enum": [
                  "gain"
                ],
                "type": "string"
              }
            },
            "required": [
              "op",
              "clip_id",
              "gain"
            ],
            "type": "object"
          }
        },
        "required": [
          "projectId",
          "clip",
          "gain",
          "engine_applied",
          "engine_reload_required",
          "undo"
        ],
        "type": "object"
      },
      "ClipMoveResult": {
        "properties": {
          "clip": {
            "$ref": "#/components/schemas/Clip"
          },
          "engine_moved": {
            "type": "boolean"
          },
          "engine_reload_required": {
            "type": "boolean"
          },
          "moved": {
            "type": "boolean"
          },
          "projectId": {
            "type": "string"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          },
          "undo": {
            "properties": {
              "clip_id": {
                "type": "string"
              },
              "lane_id": {
                "type": "string"
              },
              "op": {
                "enum": [
                  "move"
                ],
                "type": "string"
              },
              "start_ms": {
                "type": "integer"
              }
            },
            "required": [
              "op",
              "clip_id",
              "lane_id",
              "start_ms"
            ],
            "type": "object"
          }
        },
        "required": [
          "projectId",
          "clip",
          "engine_moved",
          "engine_reload_required",
          "undo"
        ],
        "type": "object"
      },
      "ClipMuteResult": {
        "properties": {
          "changed": {
            "type": "boolean"
          },
          "clip": {
            "$ref": "#/components/schemas/Clip"
          },
          "clipMuted": {
            "type": "boolean"
          },
          "engine_applied": {
            "type": "boolean"
          },
          "engine_reload_required": {
            "type": "boolean"
          },
          "projectId": {
            "type": "string"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          },
          "undo": {
            "properties": {
              "clip_id": {
                "type": "string"
              },
              "muted": {
                "type": "boolean"
              },
              "op": {
                "enum": [
                  "mute"
                ],
                "type": "string"
              }
            },
            "required": [
              "op",
              "clip_id",
              "muted"
            ],
            "type": "object"
          }
        },
        "required": [
          "projectId",
          "clip",
          "clipMuted",
          "engine_applied",
          "engine_reload_required",
          "undo"
        ],
        "type": "object"
      },
      "ClipWaveform": {
        "properties": {
          "bucket_count": {
            "description": "Buckets returned: min(buckets, end_frame - start_frame).",
            "type": "integer"
          },
          "channel_count": {
            "type": "integer"
          },
          "channels": {
            "description": "One entry per source channel; each array holds bucket_count values in [-1, 1] (rms in [0, 1]).",
            "items": {
              "properties": {
                "max": {
                  "items": {
                    "type": "number"
                  },
                  "type": "array"
                },
                "min": {
                  "items": {
                    "type": "number"
                  },
                  "type": "array"
                },
                "rms": {
                  "items": {
                    "type": "number"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "clip": {
            "description": "The clip's placement when the read was made.",
            "properties": {
              "audio_offset_frames": {
                "type": "integer",
                "x-unit": "source sample frames"
              },
              "audio_offset_sec": {
                "type": "number",
                "x-unit": "seconds"
              },
              "duration_frames": {
                "type": "integer",
                "x-unit": "source sample frames"
              },
              "duration_sec": {
                "type": "number",
                "x-unit": "seconds"
              },
              "gain": {
                "type": "number"
              },
              "start_ms": {
                "type": "number",
                "x-unit": "milliseconds"
              }
            },
            "type": "object"
          },
          "clip_id": {
            "type": "string"
          },
          "end_frame": {
            "description": "End (exclusive) of the answered range.",
            "type": "integer",
            "x-unit": "source sample frames"
          },
          "frame_count": {
            "description": "Length of the whole source, not of the clip's audible region.",
            "type": "integer",
            "x-unit": "source sample frames"
          },
          "frames_per_bucket": {
            "description": "(end_frame - start_frame) / bucket_count.",
            "type": "number"
          },
          "projectId": {
            "type": "string"
          },
          "revision": {
            "description": "Identity of the clip's source audio (also the ETag). Clips cut from the same source report the same revision; it changes only when the source audio changes. Known only from a waveform read; to group clips by audio without one, use the clip card's audioSourceId.",
            "type": "string"
          },
          "sample_rate": {
            "description": "Sample rate of the source frames this read indexes.",
            "type": "number",
            "x-unit": "Hz"
          },
          "session_recovered": {
            "description": "Present only when the clip had to be loaded for this read.",
            "enum": [
              "session_load",
              "clip_attach"
            ],
            "type": "string"
          },
          "start_frame": {
            "description": "First frame of the answered range (after clamping to the source).",
            "type": "integer",
            "x-unit": "source sample frames"
          }
        },
        "type": "object"
      },
      "DawImportResult": {
        "description": "The MCP import_daw_project result (with project_id).",
        "properties": {
          "created": {
            "description": "Always false here: nothing new is created.",
            "type": "boolean"
          },
          "engine": {
            "description": "An open live session is reloaded from the saved project in the background; reloadEngineSession reloads and waits.",
            "properties": {
              "note": {
                "type": "string"
              },
              "reload": {
                "enum": [
                  "scheduled",
                  "skipped"
                ],
                "type": "string"
              }
            },
            "type": "object"
          },
          "format": {
            "enum": [
              "flp"
            ],
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "previousSaveId": {
            "description": "The save written with the replace (owned by the project owner, restorable by the owner and every editor): restoreProjectSave with it undoes the import.",
            "type": "string"
          },
          "project": {
            "additionalProperties": true,
            "type": "object"
          },
          "projectUrl": {
            "type": "string"
          },
          "replaced": {
            "description": "true: the project's contents were replaced.",
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ok",
          "replaced",
          "format",
          "previousSaveId",
          "project",
          "projectUrl"
        ],
        "type": "object"
      },
      "DawSyncLiveStatus": {
        "properties": {
          "code": {
            "description": "The room code while the room exists (members, or the grace period after the last one left), else null.",
            "type": [
              "string",
              "null"
            ]
          },
          "expires_at": {
            "description": "When the room ends if everyone stays away (slides while occupied).",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "live": {
            "description": "Someone is in the project's room now (members > 0). An empty room inside its 10-minute grace period answers false, with its code and expires_at.",
            "type": "boolean"
          },
          "members": {
            "description": "People in the room now.",
            "minimum": 0,
            "type": "integer"
          },
          "project_id": {
            "type": "string"
          }
        },
        "required": [
          "project_id",
          "live",
          "code",
          "members",
          "expires_at"
        ],
        "type": "object"
      },
      "DawSyncLiveStatusList": {
        "description": "project_ids form: one row per readable project, in the order asked; projects you cannot read (or that do not exist) are omitted.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/DawSyncLiveStatus"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "DawSyncSession": {
        "properties": {
          "code": {
            "description": "Six characters (no 0/O/1/I); send it as room in the join frame.",
            "pattern": "^[ABCDEFGHJKLMNPQRSTUVWXYZ23456789]{6}$",
            "type": "string"
          },
          "created": {
            "description": "true (201): a new room; false (200): the project's existing live room.",
            "type": "boolean"
          },
          "expires_at": {
            "description": "When the room ends if nobody joins. It slides: a room lives while it has members and for 10 minutes after the last one leaves.",
            "format": "date-time",
            "type": "string"
          },
          "project_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "websocket_url": {
            "description": "wss://<origin>/api/ws/daw-sync",
            "type": "string"
          }
        },
        "required": [
          "code",
          "websocket_url",
          "expires_at",
          "project_id",
          "created"
        ],
        "type": "object"
      },
      "EngineActionCatalogEntry": {
        "properties": {
          "argumentSchema": {
            "type": "object"
          },
          "budgets": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": {
            "type": "string"
          },
          "destructive": {
            "type": "boolean"
          },
          "family": {
            "type": "string"
          },
          "idempotencyKey": {
            "type": "boolean"
          },
          "method": {
            "enum": [
              "POST"
            ],
            "type": "string"
          },
          "mutates": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "operationId": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "rate": {
            "enum": [
              "interactive",
              "ai"
            ],
            "type": "string"
          },
          "requiresConfirmation": {
            "type": "boolean"
          },
          "risk": {
            "enum": [
              "read",
              "reversible",
              "destructive"
            ],
            "type": "string"
          },
          "role": {
            "enum": [
              "viewer",
              "editor"
            ],
            "type": "string"
          },
          "scope": {
            "enum": [
              "daw:read",
              "daw:write"
            ],
            "type": "string"
          }
        },
        "required": [
          "name",
          "operationId",
          "family",
          "risk",
          "mutates",
          "scope",
          "role",
          "argumentSchema"
        ],
        "type": "object"
      },
      "EngineActionResult": {
        "additionalProperties": true,
        "description": "Result of one live-engine action (Pro catalog): the engine response plus a one-line summary; projectChanged/changeId when open Studios were told.",
        "properties": {
          "action": {
            "description": "The Pro catalog action that ran.",
            "type": "string"
          },
          "family": {
            "description": "Catalog family (mixer, timeline, patterns, ...).",
            "type": "string"
          },
          "mixRevision": {
            "description": "Mix writes: the mix revision after the write (also the ETag \"mix-<n>\").",
            "type": "integer"
          },
          "mutated": {
            "description": "Whether the action changed project / engine state.",
            "type": "boolean"
          },
          "projectUrl": {
            "type": "string"
          },
          "resolvedArgs": {
            "description": "The arguments as the catalog validated and resolved them (ids, defaults).",
            "type": "object"
          },
          "response": {
            "description": "The engine's own JSON reply. Mix writes carry mix_revision. Lane mute/solo (setLaneMute / setLaneSolo) answer {ok, laneId, laneName, laneKind (audio | pattern | backing), field, before, after, engineApplied, trackIds? (audio clips written), placementIds? (pattern placements written), mozartTrackId?, mix_revision?, summary}; engineApplied=false means the saved rows changed but the live engine did not take it (the next session load plays it).",
            "type": "object"
          },
          "risk": {
            "description": "Catalog risk class (read, reversible, destructive).",
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "tool": {
            "description": "The MCP tool it ran through (execute_pro_action).",
            "type": "string"
          }
        },
        "type": "object"
      },
      "EngineHistory": {
        "additionalProperties": true,
        "properties": {
          "entries": {
            "description": "The engine's history list.",
            "type": [
              "array",
              "object",
              "null"
            ]
          },
          "projectId": {
            "type": "string"
          },
          "status": {
            "description": "canUndo / canRedo / cursor as the engine reports them.",
            "type": "object"
          }
        },
        "required": [
          "projectId"
        ],
        "type": "object"
      },
      "EngineMix": {
        "properties": {
          "buses": {
            "description": "Per bus: bus_id, label, gain, pan (setBusPan), muted, soloed, and (engines with stereo tools) stereo_separation, polarity_inverted, swap_lr.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "features": {
            "additionalProperties": true,
            "description": "Engine capabilities (only on engines that report them): stereo_tools = setLaneStereo / setBusStereo are supported; slot_mix = setLanePluginMix / setBusPluginMix are supported; export_formats = the containers exportMix can encode (e.g. [\"wav\", \"flac\", \"mp3\"]); stem_export = exportMix with stems:true (Split mixer tracks) is supported.",
            "type": "object"
          },
          "masterGain": {
            "type": [
              "number",
              "null"
            ]
          },
          "masterPan": {
            "description": "Master output pan (0 = center; setMasterPan). Live session state, re-centered on reload.",
            "maximum": 1,
            "minimum": -1,
            "type": "number"
          },
          "mixRevision": {
            "description": "Mozart's mix revision (null on an engine that predates it). Send it back as If-Match: \"mix-<n>\" or expected_mix_revision on mix writes.",
            "type": [
              "integer",
              "null"
            ]
          },
          "tracks": {
            "description": "Per lane: track_id, db_track_id (lane id / 'backing'), label, gain, pan, muted, soloed, bus_id, sends [{bus_id, level (linear 0-2), pre_fader}] (parallel aux sends; setLaneSend), and (engines with stereo tools) stereo_separation, polarity_inverted, swap_lr.",
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "EngineMixApplyResult": {
        "additionalProperties": true,
        "properties": {
          "mixRevision": {
            "type": "integer"
          },
          "patternRuntimeMuted": {
            "description": "Present when the batch muted/soloed a pattern timeline lane.",
            "properties": {
              "applied": {
                "description": "The engine took the filter.",
                "type": "boolean"
              },
              "laneIds": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "placementIds": {
                "description": "Placements whose mute/solo rows were written.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "sameRevision": {
                "description": "true: the placement filter changed in the batch's own mix revision. false: an older engine applied it as one extra revision step (re-read the mix ETag).",
                "type": "boolean"
              }
            },
            "type": "object"
          },
          "response": {
            "additionalProperties": true,
            "properties": {
              "applied": {
                "type": "integer"
              },
              "mix_revision": {
                "type": "integer"
              },
              "pattern_runtime_muted_applied": {
                "description": "Present (true) when the batch also installed the pattern placement filter of the pattern lanes it muted/soloed.",
                "type": "boolean"
              },
              "previous_mix_revision": {
                "type": "integer"
              },
              "results": {
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "undo_changes": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "bus_id": {
                      "description": "target=bus: the bus. target=lane: route the lane to this bus ('master').",
                      "maxLength": 64,
                      "type": "string"
                    },
                    "bus_pan": {
                      "description": "target=bus only: alias of pan.",
                      "maximum": 1,
                      "minimum": -1,
                      "type": "number"
                    },
                    "gain": {
                      "maximum": 4,
                      "minimum": 0,
                      "type": "number"
                    },
                    "lane_id": {
                      "description": "Lane id from listLanes / getEngineMix db_track_id ('backing' = the beat).",
                      "maxLength": 64,
                      "type": "string"
                    },
                    "master_pan": {
                      "description": "target=master only: alias of pan.",
                      "maximum": 1,
                      "minimum": -1,
                      "type": "number"
                    },
                    "muted": {
                      "type": "boolean"
                    },
                    "pan": {
                      "description": "Lane pan (target lane), bus pan (target bus) or master pan (target master). Bus and master pan are live session state (not saved).",
                      "maximum": 1,
                      "minimum": -1,
                      "type": "number"
                    },
                    "persist": {
                      "default": true,
                      "description": "Lane pan / master gain: false = live only (while sweeping).",
                      "type": "boolean"
                    },
                    "soloed": {
                      "type": "boolean"
                    },
                    "target": {
                      "enum": [
                        "lane",
                        "master",
                        "bus"
                      ],
                      "type": "string"
                    },
                    "track_id": {
                      "description": "Engine track id (alternative to lane_id).",
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "target"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "EngineReloadGuidance": {
        "properties": {
          "hint": {
            "type": "string"
          },
          "method": {
            "enum": [
              "POST"
            ],
            "type": "string"
          },
          "path": {
            "description": "/api/v1/projects/{id}/engine:reload",
            "type": "string"
          }
        },
        "required": [
          "method",
          "path"
        ],
        "type": "object"
      },
      "EngineReloadResult": {
        "properties": {
          "alreadyLoaded": {
            "description": "mode=reconcile only: the running session was reused and reconciled to the saved clips instead of rebuilt.",
            "type": "boolean"
          },
          "durationMs": {
            "minimum": 0,
            "type": "integer"
          },
          "engineInstance": {
            "type": [
              "string",
              "null"
            ]
          },
          "fullyLoaded": {
            "type": "boolean"
          },
          "mode": {
            "enum": [
              "full",
              "reconcile"
            ],
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "reloaded": {
            "type": "boolean"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "projectId",
          "reloaded",
          "mode",
          "fullyLoaded",
          "durationMs"
        ],
        "type": "object"
      },
      "EngineState": {
        "additionalProperties": true,
        "description": "Each read is the engine's JSON; a read that failed is {unavailable: <reason>}.",
        "properties": {
          "buses": {
            "type": "object"
          },
          "capabilityCount": {
            "type": "integer"
          },
          "capabilityFamilies": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "clips": {
            "type": "object"
          },
          "history": {
            "type": "object"
          },
          "mix": {
            "$ref": "#/components/schemas/EngineMix"
          },
          "patternPlacements": {
            "type": "object"
          },
          "patterns": {
            "type": "object"
          },
          "projectId": {
            "type": "string"
          },
          "session": {
            "type": "object"
          },
          "tracks": {
            "type": "object"
          },
          "transport": {
            "type": "object"
          }
        },
        "required": [
          "projectId"
        ],
        "type": "object"
      },
      "Error": {
        "properties": {
          "error": {
            "properties": {
              "code": {
                "description": "Stable machine-readable reason.",
                "type": "string"
              },
              "details": {
                "additionalProperties": true,
                "type": "object"
              },
              "engineStatus": {
                "description": "Mozart's HTTP status when known.",
                "type": "integer"
              },
              "message": {
                "description": "Human sentence; do not parse.",
                "type": "string"
              },
              "requestId": {
                "type": "string"
              },
              "stage": {
                "enum": [
                  "auth",
                  "validation",
                  "precondition",
                  "rate_limit",
                  "engine_dispatch",
                  "engine",
                  "internal"
                ],
                "type": "string"
              }
            },
            "required": [
              "code",
              "message",
              "stage"
            ],
            "type": "object"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "ExportJob": {
        "properties": {
          "downloadUrl": {
            "description": "One-hour signed link (status complete).",
            "type": "string"
          },
          "export": {
            "additionalProperties": true,
            "type": "object"
          },
          "jobId": {
            "type": "string"
          },
          "options": {
            "additionalProperties": true,
            "description": "The normalized export options of this job (absent for defaults).",
            "type": "object"
          },
          "projectId": {
            "type": "string"
          },
          "projectUrl": {
            "type": "string"
          },
          "retryAfterSec": {
            "type": "integer"
          },
          "status": {
            "description": "queued | rendering | uploading | complete | failed | fallback_required",
            "type": "string"
          },
          "stemCount": {
            "description": "Stems exports only: how many stems.",
            "type": "integer"
          },
          "stems": {
            "description": "Stems exports only (stems: true): one entry per lane with index, number, label, laneId, state (pending | uploading | done | error), format and bytes; once the job is complete each carries fileName and a one-hour signed downloadUrl.",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "projectId"
        ],
        "type": "object"
      },
      "ExportList": {
        "properties": {
          "exports": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          },
          "hasMore": {
            "type": "boolean"
          },
          "projectId": {
            "type": "string"
          },
          "projectUrl": {
            "type": "string"
          },
          "saves": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "projectId",
          "exports",
          "saves"
        ],
        "type": "object"
      },
      "InsertedClip": {
        "properties": {
          "audioOffsetSec": {
            "type": "number"
          },
          "clipId": {
            "type": "string"
          },
          "durationSec": {
            "type": "number"
          },
          "engine_attached": {
            "type": "boolean"
          },
          "laneId": {
            "type": [
              "string",
              "null"
            ]
          },
          "op": {
            "enum": [
              "insert",
              "restore"
            ],
            "type": "string"
          },
          "sourceId": {
            "type": [
              "string",
              "null"
            ]
          },
          "startMs": {
            "type": "integer"
          }
        },
        "required": [
          "clipId",
          "startMs",
          "durationSec",
          "audioOffsetSec",
          "engine_attached"
        ],
        "type": "object"
      },
      "InstrumentLaneResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/EngineActionResult"
          },
          {
            "properties": {
              "instrument": {
                "$ref": "#/components/schemas/CatalogInstrument"
              },
              "laneId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "presetApplied": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "timelineRevision": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          }
        ]
      },
      "InteractiveSession": {
        "description": "The open_interactive_session result (fields follow the MCP tool).",
        "properties": {
          "expires_at": {
            "type": [
              "string",
              "integer",
              "null"
            ]
          },
          "mode": {
            "enum": [
              "write",
              "read"
            ],
            "type": "string"
          },
          "revision": {},
          "sample_rate": {
            "type": [
              "integer",
              "null"
            ]
          },
          "session_id": {
            "type": "string"
          },
          "session_ticket": {
            "description": "Single-use; hand only this to the browser.",
            "type": "string"
          },
          "websocket_url": {
            "type": "string"
          }
        },
        "required": [
          "session_id"
        ],
        "type": "object"
      },
      "KeyAnalysis": {
        "properties": {
          "analysis": {
            "description": "Present when succeeded: the detector's key / scale / confidence.",
            "properties": {
              "confidence": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "detector": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "key": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "scale": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "error": {
            "description": "Present when failed: {code, message}.",
            "type": "object"
          },
          "jobId": {
            "type": [
              "string",
              "null"
            ]
          },
          "project": {
            "description": "The project card once the job is done.",
            "type": "object"
          },
          "projectId": {
            "type": "string"
          },
          "retryAfterSec": {
            "type": "integer"
          },
          "status": {
            "enum": [
              "pending",
              "running",
              "succeeded",
              "failed"
            ],
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "status"
        ],
        "type": "object"
      },
      "Lane": {
        "properties": {
          "busId": {
            "type": "string"
          },
          "color": {
            "description": "Lane colour (#rrggbb): the saved colour (updateLane color), else the order-based default the Studio paints.",
            "type": "string"
          },
          "colorOrigin": {
            "description": "user = set via updateLane / the Studio; automatic = assigned default; null = legacy lane with no recorded origin.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": [
              "string",
              "null"
            ]
          },
          "muted": {
            "type": "boolean"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "order": {
            "type": "integer"
          },
          "pan": {
            "maximum": 1,
            "minimum": -1,
            "type": "number"
          },
          "pluginChain": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "polarityInverted": {
            "type": "boolean"
          },
          "sends": {
            "description": "Saved parallel aux sends (setLaneSend / deleteLaneSend).",
            "items": {
              "$ref": "#/components/schemas/LaneSend"
            },
            "type": "array"
          },
          "solo": {
            "type": "boolean"
          },
          "stereoSeparation": {
            "default": 0,
            "maximum": 1,
            "minimum": -1,
            "type": "number"
          },
          "swapLr": {
            "type": "boolean"
          },
          "trackType": {
            "type": [
              "string",
              "null"
            ]
          },
          "volume": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "muted",
          "solo",
          "volume",
          "pan"
        ],
        "type": "object"
      },
      "LaneEq": {
        "properties": {
          "eq": {
            "$ref": "#/components/schemas/NativeEq"
          },
          "inserts": {
            "description": "Native EQ plug-ins (native-eq) on the lane's chain, e.g. the default EQ.",
            "items": {
              "$ref": "#/components/schemas/NativeEqInstance"
            },
            "type": "array"
          },
          "laneId": {
            "type": "string"
          },
          "live": {
            "description": "Read from the live engine (false = saved state).",
            "type": "boolean"
          },
          "projectId": {
            "type": "string"
          },
          "racks": {
            "description": "The EQ stage of native Effects racks (native-effects) on the chain.",
            "items": {
              "$ref": "#/components/schemas/NativeEqInstance"
            },
            "type": "array"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "projectId",
          "laneId",
          "live",
          "eq",
          "inserts",
          "racks"
        ],
        "type": "object"
      },
      "LaneInstrumentReplaceResult": {
        "properties": {
          "instanceId": {
            "type": [
              "string",
              "null"
            ]
          },
          "instrument": {
            "$ref": "#/components/schemas/CatalogInstrument"
          },
          "laneId": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "pluginIndex": {
            "description": "The new instrument's listLanePlugins slot index (0: an instrument lane's generator always sits first).",
            "type": "integer"
          },
          "presetApplied": {
            "type": [
              "string",
              "null"
            ]
          },
          "previousInstrument": {
            "description": "The instrument the lane played before (null: it had none saved).",
            "oneOf": [
              {
                "$ref": "#/components/schemas/CatalogInstrument"
              },
              {
                "type": "null"
              }
            ]
          },
          "previousPreset": {
            "type": [
              "string",
              "null"
            ]
          },
          "replaced": {
            "description": "false when the lane already played this instrument and nothing (preset / restore_state) was asked: no write.",
            "type": "boolean"
          },
          "stateRestored": {
            "type": "boolean"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          },
          "undo": {
            "description": "Send as is (with If-Match = this timelineRevision) to put the previous instrument back with its exact saved state (body.restore_state; when the previous instrument had saved no state yet, its patch by name). null when nothing changed or the lane had no saved instrument.",
            "oneOf": [
              {
                "properties": {
                  "body": {
                    "type": "object"
                  },
                  "method": {
                    "enum": [
                      "PUT"
                    ],
                    "type": "string"
                  },
                  "path": {
                    "type": "string"
                  }
                },
                "required": [
                  "method",
                  "path",
                  "body"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ok",
          "replaced",
          "laneId",
          "instrument",
          "previousInstrument",
          "pluginIndex",
          "undo",
          "timelineRevision"
        ],
        "type": "object"
      },
      "LanePluginDeleteResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/EngineActionResult"
          },
          {
            "properties": {
              "removed": {
                "properties": {
                  "bypassed": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "index": {
                    "description": "The slot it was removed from; the plug-ins after it moved up one (live and saved chain).",
                    "type": "integer"
                  },
                  "instanceId": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "position": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "restore": {
                    "description": "Everything addLanePlugin needs to bring the plug-in back with its exact settings (null when nothing was known about it).",
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/PluginRestoreState"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "typeId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "index",
                  "instanceId",
                  "restore"
                ],
                "type": "object"
              }
            },
            "required": [
              "removed"
            ],
            "type": "object"
          }
        ]
      },
      "LanePluginInstanceDeleteResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/EngineActionResult"
          },
          {
            "properties": {
              "removed": {
                "properties": {
                  "bypassed": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "instanceId": {
                    "type": "string"
                  },
                  "live": {
                    "description": "The instance was live and was unloaded.",
                    "type": "boolean"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "position": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "restore": {
                    "description": "Everything addLanePlugin needs to bring the plug-in back with its exact settings (null when nothing was known about it).",
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/PluginRestoreState"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "saved": {
                    "description": "The instance had a saved-chain row and the saved chain no longer holds it.",
                    "type": "boolean"
                  },
                  "typeId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "instanceId",
                  "live",
                  "saved",
                  "restore"
                ],
                "type": "object"
              }
            },
            "required": [
              "removed"
            ],
            "type": "object"
          }
        ]
      },
      "LanePluginSnapshot": {
        "properties": {
          "bypassed": {
            "type": "boolean"
          },
          "instance_id": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "native": {
            "type": "boolean"
          },
          "params": {
            "items": {
              "properties": {
                "index": {
                  "minimum": 0,
                  "type": "integer"
                },
                "value_norm": {
                  "maximum": 1,
                  "minimum": 0,
                  "type": "number"
                }
              },
              "required": [
                "index",
                "value_norm"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "params_source": {
            "enum": [
              "live",
              "saved"
            ],
            "type": "string"
          },
          "plugin_index": {
            "type": "integer"
          },
          "preset": {
            "type": [
              "string",
              "null"
            ]
          },
          "size_bytes": {
            "type": "integer"
          },
          "state": {
            "description": "Opaque base64 state; null when none or larger than 4 MiB.",
            "type": [
              "string",
              "null"
            ]
          },
          "state_encoding": {
            "enum": [
              "base64",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "state_format": {
            "enum": [
              "plugin_chunk",
              "native_json",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "state_hash": {
            "description": "sha256 of the state bytes.",
            "type": "string"
          },
          "state_omitted": {
            "enum": [
              "too_large"
            ],
            "type": "string"
          },
          "state_signature": {
            "description": "Send back with the state to restoreLanePluginState (hosted plug-ins).",
            "type": "string"
          },
          "state_source": {
            "enum": [
              "live",
              "saved",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "instance_id",
          "native",
          "bypassed",
          "state"
        ],
        "type": "object"
      },
      "LaneSend": {
        "properties": {
          "busId": {
            "type": "string"
          },
          "level": {
            "description": "Linear send level (1 = unity, 2 = +6 dB).",
            "maximum": 2,
            "minimum": 0,
            "type": "number"
          },
          "preFader": {
            "description": "true = tapped before the lane fader and pan (mute/solo still silence it); false = after them.",
            "type": "boolean"
          }
        },
        "required": [
          "busId",
          "level",
          "preFader"
        ],
        "type": "object"
      },
      "LaneSendResult": {
        "properties": {
          "busId": {
            "type": "string"
          },
          "dbPersisted": {
            "type": "boolean"
          },
          "laneId": {
            "type": "string"
          },
          "mixRevision": {
            "type": [
              "integer",
              "null"
            ]
          },
          "ok": {
            "type": "boolean"
          },
          "previous": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/LaneSend"
              },
              {
                "type": "null"
              }
            ]
          },
          "projectId": {
            "type": "string"
          },
          "send": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/LaneSend"
              },
              {
                "type": "null"
              }
            ]
          },
          "undo": {
            "description": "The request that undoes this write (send it with the new mix ETag), or null when there is nothing to undo.",
            "oneOf": [
              {
                "properties": {
                  "body": {
                    "type": "object"
                  },
                  "method": {
                    "enum": [
                      "PUT",
                      "DELETE"
                    ],
                    "type": "string"
                  },
                  "path": {
                    "type": "string"
                  }
                },
                "required": [
                  "method",
                  "path"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "ok",
          "projectId",
          "laneId",
          "busId",
          "send",
          "previous",
          "undo"
        ],
        "type": "object"
      },
      "LaneWriteResult": {
        "properties": {
          "changed": {
            "description": "updateLane: the lane fields this write changed.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "lane": {
            "description": "updateLane: the saved lane identity.",
            "type": [
              "object",
              "null"
            ]
          },
          "laneId": {
            "type": "string"
          },
          "liveMix": {
            "description": "updateLane WITH a mix precondition (If-Match \"mix-<n>\" / expected_mix_revision) only: the volume / pan / muted / soloed you sent were applied to the live engine under the precondition before the lane row was saved. Absent on an unguarded updateLane (then only the row is written, plus livePan for a pan).",
            "properties": {
              "applied": {
                "description": "Always true when present: the mix fields went through the engine's atomic compare-and-set first (POST /mix/apply).",
                "type": "boolean"
              }
            },
            "required": [
              "applied"
            ],
            "type": "object"
          },
          "livePan": {
            "description": "updateLane with pan: whether the running engine session took the saved pan too (absent when pan was not sent).",
            "properties": {
              "applied": {
                "description": "true = the running engine session took the change (the next audio block hears it).",
                "type": "boolean"
              },
              "reason": {
                "description": "Why it was not applied live. The saved change still stands; the next session load plays it.",
                "enum": [
                  "no_live_session",
                  "engine_rejected",
                  "engine_unreachable"
                ],
                "type": "string"
              }
            },
            "required": [
              "applied"
            ],
            "type": "object"
          },
          "mixRevision": {
            "description": "updateLane with a mix precondition: the mix revision after the write (send it as the next If-Match: \"mix-<n>\").",
            "type": "integer"
          },
          "ok": {
            "type": "boolean"
          },
          "projectId": {
            "type": "string"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "LibraryAsset": {
        "description": "The compact marketplace asset card (fields follow MCP list_my_library_assets).",
        "properties": {
          "assetType": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "ListenPreview": {
        "properties": {
          "artist": {
            "type": [
              "string",
              "null"
            ]
          },
          "bpm": {},
          "coverArtUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "durationSec": {},
          "key": {},
          "latestMix": {
            "type": [
              "object",
              "null"
            ]
          },
          "listenUrl": {
            "type": "string"
          },
          "playbackAudioUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "projectId": {
            "type": "string"
          },
          "shareUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "shareVisibility": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "projectId",
          "title"
        ],
        "type": "object"
      },
      "ListenReport": {
        "description": "The MCP listen_to_project analysis (measured.* are post-master dBFS, what exportMix writes); clip.playbackUrl is valid for one hour.",
        "properties": {
          "clip": {
            "anyOf": [
              {
                "properties": {
                  "bytes": {
                    "type": "integer"
                  },
                  "expiresInSec": {
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "mimeType": {
                    "type": "string"
                  },
                  "playbackUrl": {
                    "type": "string"
                  },
                  "seconds": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "heard": {},
          "measured": {
            "additionalProperties": true,
            "type": "object"
          },
          "ok": {
            "type": "boolean"
          },
          "projectId": {
            "type": "string"
          },
          "reports": {},
          "summary": {},
          "trackId": {
            "type": "string"
          },
          "window": {
            "additionalProperties": true,
            "type": "object"
          }
        },
        "required": [
          "projectId"
        ],
        "type": "object"
      },
      "MediaAddResult": {
        "description": "The MCP upload_audio / add_audio_from_url result: laneId + clipId for a vocal/audio take, backingTrack for kind=backing, created=true for new_project.",
        "properties": {
          "backingTrack": {
            "additionalProperties": true,
            "type": "object"
          },
          "clipId": {
            "type": "string"
          },
          "durationSec": {
            "type": [
              "number",
              "null"
            ]
          },
          "editUrl": {
            "type": "string"
          },
          "engineError": {
            "additionalProperties": true,
            "type": "object"
          },
          "engine_attached": {
            "description": "uploadAudio: the new clip is loaded in the project's open live session (waveform reads and sample edits work right away). false when no session is open: the next session load reads it.",
            "type": "boolean"
          },
          "engine_reload_required": {
            "description": "The clip is saved but an open live session could not load it: attachClipToSession or a session reload plays it.",
            "type": "boolean"
          },
          "kind": {
            "type": "string"
          },
          "laneId": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "postCommitError": {
            "additionalProperties": true,
            "type": "object"
          },
          "project": {
            "additionalProperties": true,
            "type": "object"
          },
          "projectUrl": {
            "type": "string"
          },
          "startMs": {
            "description": "Where the new clip sits on the timeline (ms).",
            "type": "integer"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "NativeEq": {
        "properties": {
          "bands": {
            "items": {
              "$ref": "#/components/schemas/NativeEqBand"
            },
            "maxItems": 8,
            "type": "array"
          },
          "enabled": {
            "description": "Any band enabled.",
            "type": "boolean"
          }
        },
        "required": [
          "enabled",
          "bands"
        ],
        "type": "object"
      },
      "NativeEqBand": {
        "properties": {
          "band": {
            "maximum": 7,
            "minimum": 0,
            "type": "integer"
          },
          "enabled": {
            "type": "boolean"
          },
          "frequency_hz": {
            "maximum": 20000.0,
            "minimum": 20.0,
            "type": "number"
          },
          "gain_db": {
            "maximum": 18.0,
            "minimum": -18.0,
            "type": "number"
          },
          "q": {
            "maximum": 18.0,
            "minimum": 0.1,
            "type": "number"
          },
          "type": {
            "enum": [
              "bell",
              "proportional_q",
              "vintage_bell",
              "band_shelf",
              "low_shelf",
              "resonant_low_shelf",
              "vintage_low_shelf",
              "high_shelf",
              "resonant_high_shelf",
              "vintage_high_shelf",
              "low_pass",
              "resonant_low_pass",
              "high_pass",
              "resonant_high_pass",
              "baxandall_bass",
              "baxandall_treble"
            ],
            "type": "string"
          },
          "type_index": {
            "description": "The engine's shape index (type position in the enum).",
            "maximum": 15,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "band",
          "enabled",
          "type",
          "type_index",
          "frequency_hz",
          "gain_db",
          "q"
        ],
        "type": "object"
      },
      "NativeEqInstance": {
        "properties": {
          "eq": {
            "$ref": "#/components/schemas/NativeEq"
          },
          "instanceId": {
            "type": "string"
          },
          "pluginIndex": {
            "description": "Live slot index (null when not live).",
            "type": [
              "integer",
              "null"
            ]
          },
          "typeId": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "instanceId",
          "eq"
        ],
        "type": "object"
      },
      "Pagination": {
        "properties": {
          "hasMore": {
            "type": "boolean"
          },
          "limit": {
            "type": "integer"
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "limit",
          "hasMore",
          "nextCursor"
        ],
        "type": "object"
      },
      "Pattern": {
        "properties": {
          "bars": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "lengthTicks": {
            "description": "Pattern length in ticks. Kept consistent with bars on every write.",
            "type": "integer"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "pattern": {
            "properties": {
              "events": {
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "sources": {
                "items": {
                  "$ref": "#/components/schemas/PatternChannel"
                },
                "type": "array"
              }
            },
            "type": "object"
          },
          "ppq": {
            "type": "integer"
          },
          "swing": {
            "type": "number"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "PatternCcEvent": {
        "properties": {
          "cc": {
            "maximum": 127,
            "minimum": 0,
            "type": "integer"
          },
          "channel": {
            "maximum": 16,
            "minimum": 1,
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "sourceId": {
            "description": "The channel (sources[].id) it controls.",
            "type": "string"
          },
          "startTick": {
            "minimum": 0,
            "type": "number"
          },
          "type": {
            "default": "cc",
            "enum": [
              "cc",
              "control",
              "controller"
            ],
            "type": "string"
          },
          "value": {
            "maximum": 127,
            "minimum": 0,
            "type": "number"
          }
        },
        "type": "object"
      },
      "PatternChannel": {
        "properties": {
          "audioFileId": {
            "description": "Pattern sample (sample channels).",
            "maxLength": 64,
            "type": "string"
          },
          "busId": {
            "maxLength": 64,
            "type": "string"
          },
          "color": {
            "description": "Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.",
            "maxLength": 64,
            "type": [
              "string",
              "null"
            ]
          },
          "cutGroup": {
            "description": "Cut (choke) group. A new note in a group stops every other sounding note of that group (sample channels, in the engine's pattern sampler). 0 or null = no group.",
            "maximum": 64,
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "icon": {
            "description": "Short icon name chosen by the client. null clears it.",
            "pattern": "^[a-z0-9][a-z0-9_-]{0,31}$",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "Channel id (events[].sourceId).",
            "maxLength": 128,
            "type": "string"
          },
          "kind": {
            "enum": [
              "sample",
              "plugin",
              "instrument"
            ],
            "type": "string"
          },
          "laneId": {
            "description": "Instrument lane (plugin channels).",
            "maxLength": 64,
            "type": "string"
          },
          "midiChannel": {
            "description": "MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.",
            "maximum": 16,
            "minimum": 1,
            "type": [
              "integer",
              "null"
            ]
          },
          "muted": {
            "type": "boolean"
          },
          "name": {
            "maxLength": 255,
            "type": "string"
          },
          "order": {
            "minimum": 0,
            "type": "integer"
          },
          "outputLaneId": {
            "description": "Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.",
            "maxLength": 64,
            "type": [
              "string",
              "null"
            ]
          },
          "solo": {
            "type": "boolean"
          },
          "volume": {
            "maximum": 2,
            "minimum": 0,
            "type": "number"
          }
        },
        "type": "object"
      },
      "PatternChannelResult": {
        "properties": {
          "channel": {
            "$ref": "#/components/schemas/PatternChannel"
          },
          "ok": {
            "type": "boolean"
          },
          "pattern": {
            "$ref": "#/components/schemas/Pattern"
          },
          "patternId": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          },
          "undo": {
            "$ref": "#/components/schemas/PatternChannelUndo"
          }
        },
        "required": [
          "ok",
          "patternId",
          "channel",
          "position",
          "timelineRevision"
        ],
        "type": "object"
      },
      "PatternChannelUndo": {
        "properties": {
          "body": {
            "description": "Body of the undo request, to send exactly as is.",
            "type": "object"
          },
          "method": {
            "description": "HTTP method of the undo request.",
            "enum": [
              "POST",
              "PATCH",
              "DELETE"
            ],
            "type": "string"
          },
          "op": {
            "description": "What the undo does (kept for older clients).",
            "enum": [
              "add",
              "update",
              "delete",
              "unassign"
            ],
            "type": "string"
          },
          "path": {
            "description": "Path of the undo request, relative to /api/v1.",
            "type": "string"
          },
          "steps": {
            "description": "assignToNewInstrumentTrack only: the undo is TWO requests [{method, path, body}], run in order.",
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "timelineRevision": {
            "description": "The revision after this change: send it as If-Match on the undo request.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "PatternNote": {
        "properties": {
          "durationTick": {
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "muted": {
            "default": false,
            "description": "FL-style note mute: stored with the note and skipped by every player (song, pattern preview, listen/render) -- a muted note never sounds.",
            "type": "boolean"
          },
          "note": {
            "maximum": 127,
            "minimum": 0,
            "type": "integer"
          },
          "playbackRate": {
            "description": "type sample only: explicit sampler rate (wins over note).",
            "maximum": 32,
            "minimum": 0.03125,
            "type": "number"
          },
          "rootPitch": {
            "description": "type sample only: the pitch `note` is measured against.",
            "maximum": 127,
            "minimum": 0,
            "type": "number"
          },
          "slide": {
            "default": false,
            "description": "FL-style slide (portamento glide into the next note's pitch). STORED ONLY for now: persisted and returned with the note, but playback plays a slide note as an ordinary note (Mozart has no pitch-glide MIDI path yet).",
            "type": "boolean"
          },
          "sourceId": {
            "description": "The channel (sources[].id) it plays.",
            "type": "string"
          },
          "startTick": {
            "minimum": 0,
            "type": "number"
          },
          "type": {
            "default": "midi",
            "description": "`sample` = a hit on a SAMPLE channel (sources[].kind sample): it plays that channel's sample (audioFileId). `note` (optional) repitches it by 2^((note - rootPitch)/12) (rootPitch from the event, else the channel, else 60) and `playbackRate` sets the rate directly; with neither it plays at its natural pitch. velocity scales it; durationTick gates it in the channel's gate / hold sampler modes (one-shot plays the whole sample). Only `sample` events sound on a sample channel. `midi` / `note` (synonyms) = a note for an instrument (plugin / instrument) channel.",
            "enum": [
              "midi",
              "note",
              "sample"
            ],
            "type": "string"
          },
          "velocity": {
            "maximum": 1,
            "minimum": 0,
            "type": "number"
          }
        },
        "type": "object"
      },
      "PatternPlacement": {
        "properties": {
          "busId": {
            "type": [
              "string",
              "null"
            ]
          },
          "durationMs": {
            "type": "integer"
          },
          "gain": {
            "description": "Saved row gain (setPatternPlacementGain), linear; 1.0 = unity (also when never set). Applies to the pattern's samples and to the instrument lanes its notes drive, except lanes whose own gain was set explicitly.",
            "maximum": 4,
            "minimum": 0,
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "laneId": {
            "type": [
              "string",
              "null"
            ]
          },
          "loopDurationMs": {
            "type": [
              "integer",
              "null"
            ]
          },
          "loopPhaseMs": {
            "type": "integer"
          },
          "muted": {
            "type": "boolean"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "offsetMs": {
            "type": "integer"
          },
          "patternId": {
            "type": "string"
          },
          "repeatCount": {
            "type": [
              "integer",
              "null"
            ]
          },
          "soloed": {
            "type": "boolean"
          },
          "startMs": {
            "type": "integer"
          },
          "windowMs": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "patternId"
        ],
        "type": "object"
      },
      "PatternPlacementAutomationSnapshot": {
        "additionalProperties": false,
        "properties": {
          "defaultValue": {
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "points": {
            "type": "array"
          },
          "revision": {
            "type": "integer"
          },
          "target": {
            "type": "object"
          },
          "targetKey": {
            "type": "string"
          },
          "targetKind": {
            "type": "string"
          },
          "valueType": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "targetKey",
          "targetKind",
          "target",
          "valueType",
          "defaultValue",
          "points",
          "revision"
        ],
        "type": "object"
      },
      "PatternPlacementBatchOp": {
        "additionalProperties": false,
        "properties": {
          "before": {
            "$ref": "#/components/schemas/PatternPlacementSnapshot",
            "description": "restore: the delete's inverse op before."
          },
          "op": {
            "enum": [
              "create",
              "update",
              "delete",
              "restore"
            ],
            "type": "string"
          },
          "placement": {
            "additionalProperties": false,
            "properties": {
              "busId": {
                "description": "Omitted on update = unchanged.",
                "maxLength": 64,
                "type": "string"
              },
              "displayOrder": {
                "description": "Timeline row order (stored; omitted on update = unchanged).",
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "durationMs": {
                "minimum": 1,
                "type": "integer"
              },
              "laneId": {
                "maxLength": 64,
                "type": "string"
              },
              "loopDurationMs": {
                "minimum": 1,
                "type": "integer"
              },
              "loopPhaseMs": {
                "minimum": 0,
                "type": "integer"
              },
              "muted": {
                "type": "boolean"
              },
              "name": {
                "maxLength": 255,
                "type": "string"
              },
              "offsetMs": {
                "minimum": 0,
                "type": "integer"
              },
              "patternId": {
                "maxLength": 64,
                "type": "string"
              },
              "repeatCount": {
                "minimum": 1,
                "type": "integer"
              },
              "soloed": {
                "type": "boolean"
              },
              "sourceBusOverrides": {
                "type": "object"
              },
              "startMs": {
                "minimum": 0,
                "type": "integer"
              },
              "windowMs": {
                "description": "null clears the trim window.",
                "minimum": 1,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "placementId": {
            "description": "update / delete / restore: the placement.",
            "maxLength": 64,
            "type": "string"
          },
          "restoreToken": {
            "description": "restore: the delete's inverse op restoreToken.",
            "maxLength": 1024,
            "type": "string"
          }
        },
        "required": [
          "op"
        ],
        "type": "object"
      },
      "PatternPlacementBatchResult": {
        "properties": {
          "createdLaneIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "deletedIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ok": {
            "type": "boolean"
          },
          "placements": {
            "description": "Cards of the created / updated / restored placements (compact pattern).",
            "items": {
              "$ref": "#/components/schemas/PatternPlacement"
            },
            "type": "array"
          },
          "results": {
            "items": {
              "properties": {
                "createdLaneId": {
                  "type": "string"
                },
                "index": {
                  "type": "integer"
                },
                "op": {
                  "type": "string"
                },
                "placementId": {
                  "type": "string"
                }
              },
              "required": [
                "index",
                "op",
                "placementId"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          },
          "undo": {
            "properties": {
              "inverse_ops": {
                "description": "POST {ops: inverse_ops} back to :batch to undo.",
                "items": {
                  "$ref": "#/components/schemas/PatternPlacementBatchOp"
                },
                "type": "array"
              },
              "timelineRevision": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "inverse_ops"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "results",
          "placements",
          "deletedIds",
          "undo",
          "timelineRevision"
        ],
        "type": "object"
      },
      "PatternPlacementDeleteResult": {
        "properties": {
          "action": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "response": {
            "additionalProperties": true,
            "type": "object"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          },
          "undo": {
            "properties": {
              "before": {
                "$ref": "#/components/schemas/PatternPlacementSnapshot"
              },
              "op": {
                "enum": [
                  "restore"
                ],
                "type": "string"
              },
              "placementId": {
                "type": "string"
              },
              "restoreToken": {
                "description": "Signed, 24 h, bound to this deletion and your account; required by :restore.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "timelineRevision": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "op",
              "placementId",
              "before",
              "restoreToken",
              "timelineRevision"
            ],
            "type": "object"
          }
        },
        "required": [
          "undo"
        ],
        "type": "object"
      },
      "PatternPlacementEq": {
        "properties": {
          "eq": {
            "$ref": "#/components/schemas/NativeEq"
          },
          "live": {
            "type": "boolean"
          },
          "placementId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "projectId",
          "placementId",
          "eq",
          "live"
        ],
        "type": "object"
      },
      "PatternPlacementRestoreResult": {
        "properties": {
          "placement": {
            "$ref": "#/components/schemas/PatternPlacement"
          },
          "placementId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "restored": {
            "$ref": "#/components/schemas/PatternPlacementSnapshot"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "placementId",
          "placement",
          "restored",
          "timelineRevision"
        ],
        "type": "object"
      },
      "PatternPlacementSnapshot": {
        "additionalProperties": false,
        "properties": {
          "automation": {
            "items": {
              "$ref": "#/components/schemas/PatternPlacementAutomationSnapshot"
            },
            "maxItems": 64,
            "type": "array"
          },
          "busId": {
            "type": "string"
          },
          "displayOrder": {
            "type": "integer"
          },
          "durationMs": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "laneId": {
            "type": [
              "string",
              "null"
            ]
          },
          "loopDurationMs": {
            "type": "integer"
          },
          "loopPhaseMs": {
            "type": "integer"
          },
          "muted": {
            "type": "boolean"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "nativeEq": {
            "type": [
              "object",
              "null"
            ]
          },
          "offsetMs": {
            "type": "integer"
          },
          "patternId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "repeatCount": {
            "type": "integer"
          },
          "rowGain": {
            "type": [
              "object",
              "null"
            ]
          },
          "soloed": {
            "type": "boolean"
          },
          "sourceBusOverrides": {
            "type": "object"
          },
          "startMs": {
            "type": "integer"
          },
          "windowMs": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "projectId",
          "patternId",
          "laneId",
          "name",
          "startMs",
          "durationMs",
          "loopDurationMs",
          "repeatCount",
          "offsetMs",
          "windowMs",
          "loopPhaseMs",
          "busId",
          "sourceBusOverrides",
          "displayOrder",
          "muted",
          "soloed",
          "nativeEq",
          "rowGain",
          "automation"
        ],
        "type": "object"
      },
      "PatternSample": {
        "properties": {
          "audioFileId": {
            "type": "string"
          },
          "audioUrl": {
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "durationSec": {
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "mimeType": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "sourceAudioFileId": {
            "type": [
              "string",
              "null"
            ]
          },
          "sourceTrackId": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "audioFileId"
        ],
        "type": "object"
      },
      "PatternSampleTimelinePlacement": {
        "properties": {
          "audioFileId": {
            "type": "string"
          },
          "audioUrl": {
            "type": "string"
          },
          "clip": {
            "$ref": "#/components/schemas/Clip"
          },
          "clipId": {
            "type": "string"
          },
          "createdLane": {
            "type": "boolean"
          },
          "durationSec": {
            "type": "number"
          },
          "engine": {
            "properties": {
              "clip_id": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "track_id": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "engineError": {
            "additionalProperties": true,
            "type": "object"
          },
          "engine_attached": {
            "type": "boolean"
          },
          "engine_reload_required": {
            "type": "boolean"
          },
          "lane": {
            "$ref": "#/components/schemas/Lane"
          },
          "laneId": {
            "type": "string"
          },
          "mimeType": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "rackChannelId": {
            "type": "string"
          },
          "startMs": {
            "type": "integer"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          },
          "trackId": {
            "description": "Same as clipId (the Studio route's name).",
            "type": "string"
          },
          "undo": {
            "properties": {
              "clipId": {
                "type": "string"
              },
              "createdLane": {
                "type": "boolean"
              },
              "laneId": {
                "type": "string"
              },
              "op": {
                "enum": [
                  "remove"
                ],
                "type": "string"
              }
            },
            "required": [
              "op",
              "clipId",
              "laneId",
              "createdLane"
            ],
            "type": "object"
          }
        },
        "required": [
          "projectId",
          "audioFileId",
          "clipId",
          "laneId",
          "createdLane",
          "startMs",
          "clip",
          "lane",
          "engine_attached",
          "engine_reload_required",
          "timelineRevision",
          "undo"
        ],
        "type": "object"
      },
      "PatternSampleWaveform": {
        "properties": {
          "audioFileId": {
            "type": "string"
          },
          "bucketCount": {
            "type": "integer"
          },
          "durationSec": {
            "type": "number"
          },
          "peaks": {
            "description": "Normalized peak amplitude per bucket (max of the stored peaks it covers).",
            "items": {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            "type": "array"
          },
          "source": {
            "description": "stored: peaks saved at ingest (or computed by an earlier read). computed: this read had the live engine decode the sample and saved the peaks, so the next read is `stored`.",
            "enum": [
              "stored",
              "computed"
            ],
            "type": "string"
          }
        },
        "required": [
          "audioFileId",
          "durationSec",
          "bucketCount",
          "peaks",
          "source"
        ],
        "type": "object"
      },
      "PatternWriteResult": {
        "properties": {
          "action": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "response": {
            "additionalProperties": true,
            "type": "object"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "PluginEditorInputResult": {
        "properties": {
          "busId": {
            "description": "'master' (master-bus editor routes).",
            "type": "string"
          },
          "code": {
            "description": "Why ok is false: input_unconfirmed (dispatched, but no parameter and no editor pixel changed), not_hit_testable (NOTHING was sent: the editor window is not reported under the pointer even after the engine armed it; input no longer depends on WindowServer hit testing, so this is rare -- re-open the editor with openPluginEditor and retry), no_editor_view (the point hit no view inside the editor), dispatch_failed (the host refused the event). Never retried by the server.",
            "type": [
              "string",
              "null"
            ]
          },
          "confirmation": {
            "enum": [
              "parameter_changed",
              "frame_changed",
              "unconfirmed",
              "not_checked",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "delivery": {
            "description": "confirmed: an effect was observed (up / scroll / type). dispatched: down / move reached a hit-testable editor view; the gesture is confirmed on its up. rejected: see code.",
            "enum": [
              "dispatched",
              "confirmed",
              "rejected",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "editorTarget": {
            "description": "The window and plug-in instance the event was sent to (windowId, instanceId, hitView, firstResponder, windowKey).",
            "type": [
              "object",
              "null"
            ]
          },
          "engineTrackId": {
            "type": "integer"
          },
          "laneId": {
            "description": "The lane (lane editor routes).",
            "type": [
              "string",
              "null"
            ]
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "ok": {
            "type": "boolean"
          },
          "phase": {
            "type": "string"
          },
          "pluginIndex": {
            "type": "integer"
          }
        },
        "required": [
          "ok",
          "pluginIndex"
        ],
        "type": "object"
      },
      "PluginParameter": {
        "properties": {
          "automatable": {
            "type": "boolean"
          },
          "default": {
            "type": [
              "number",
              "null"
            ]
          },
          "display": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "Host-stable parameter id (index:N when the host has none).",
            "type": "string"
          },
          "index": {
            "type": "integer"
          },
          "meta": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "physicalDefault": {
            "type": [
              "number",
              "null"
            ]
          },
          "physicalValue": {
            "description": "Native slots: current value in `unit`.",
            "type": [
              "number",
              "null"
            ]
          },
          "range": {
            "properties": {
              "max": {
                "type": "number"
              },
              "min": {
                "type": "number"
              },
              "normalized": {
                "type": "boolean"
              },
              "rawDefault": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "rawMax": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "rawMin": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "step": {
            "description": "Native slots: physical step.",
            "type": [
              "number",
              "null"
            ]
          },
          "steps": {
            "type": [
              "integer",
              "null"
            ]
          },
          "unit": {
            "type": [
              "string",
              "null"
            ]
          },
          "value": {
            "type": [
              "number",
              "null"
            ]
          },
          "writeForms": {
            "description": "Body fields setLanePluginParameter accepts for this parameter.",
            "items": {
              "enum": [
                "value_norm",
                "value"
              ],
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "index",
          "name",
          "range",
          "value",
          "writeForms"
        ],
        "type": "object"
      },
      "PluginRestoreState": {
        "properties": {
          "addLanePlugin": {
            "description": "Ready-to-send addLanePlugin body that undoes the delete.",
            "properties": {
              "bypassed": {
                "type": "boolean"
              },
              "instance_id": {
                "type": "string"
              },
              "parameters": {
                "type": "object"
              },
              "plugin_id": {
                "type": "string"
              },
              "position": {
                "type": "integer"
              },
              "state": {
                "type": "string"
              },
              "state_signature": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "bypassed": {
            "type": "boolean"
          },
          "instanceId": {
            "description": "The deleted instance id (send it back as instance_id to keep automation / history references resolving).",
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "native": {
            "type": "boolean"
          },
          "parameters": {
            "additionalProperties": {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            "description": "Hosted plug-ins: every host parameter (index -> normalized value) read from the running plug-in just before the delete. Some plug-ins keep a host-set parameter out of their state chunk; addLanePlugin parameters replays them after the chunk.",
            "maxProperties": 4096,
            "type": "object"
          },
          "position": {
            "description": "0-based chain slot it held.",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "preset": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "description": "Opaque saved state, base64 (null when the plug-in had none, or it exceeds 4 MiB: see stateOmitted).",
            "maxLength": 4194304,
            "type": [
              "string",
              "null"
            ]
          },
          "stateEncoding": {
            "enum": [
              "base64",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "stateFormat": {
            "enum": [
              "plugin_chunk",
              "native_json",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "stateOmitted": {
            "enum": [
              "too_large"
            ],
            "type": "string"
          },
          "stateSignature": {
            "description": "Our signature over typeId + state: send it back as addLanePlugin state_signature with this exact state.",
            "maxLength": 128,
            "type": "string"
          },
          "stateSource": {
            "description": "live = read from the running plug-in just before the delete; saved = the saved chain row.",
            "enum": [
              "live",
              "saved",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "typeId": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "instanceId",
          "bypassed"
        ],
        "type": "object"
      },
      "PluginSavedState": {
        "properties": {
          "laneId": {
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "type": "string"
          },
          "plugins": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "projectId": {
            "type": "string"
          },
          "songPresetSeedId": {
            "type": [
              "string",
              "null"
            ]
          },
          "trackId": {
            "type": [
              "string",
              "null"
            ]
          },
          "voiceSettings": {
            "type": [
              "object",
              "null"
            ]
          }
        },
        "required": [
          "projectId",
          "plugins"
        ],
        "type": "object"
      },
      "Project": {
        "description": "The get_project card: lanes and clips are capped (see truncated); page through /lanes and /clips for everything.",
        "properties": {
          "bpm": {
            "description": "The tempo the project runs at (quarter notes per minute), never null: the explicit tempo, else the backing's detected tempo, else 120 (Mozart's default for a project without a tempo). bpmSource says which.",
            "type": "number"
          },
          "bpmSource": {
            "description": "set = an explicit tempo (createProject bpm, setProjectTempo, setTimingMap, the Studio's tempo control); backing = nothing set, the backing's detected tempo (the Studio adopts it when it opens the project); default = nothing set or detected, 120 BPM.",
            "enum": [
              "set",
              "backing",
              "default"
            ],
            "type": "string"
          },
          "clips": {
            "items": {
              "$ref": "#/components/schemas/Clip"
            },
            "type": "array"
          },
          "counts": {
            "additionalProperties": true,
            "type": "object"
          },
          "id": {
            "type": "string"
          },
          "lanes": {
            "items": {
              "$ref": "#/components/schemas/Lane"
            },
            "type": "array"
          },
          "masterGain": {
            "type": "number"
          },
          "role": {
            "enum": [
              "owner",
              "editor",
              "viewer"
            ],
            "type": "string"
          },
          "timelineRevision": {
            "type": "string"
          },
          "timingMap": {
            "type": [
              "object",
              "null"
            ]
          },
          "title": {
            "type": "string"
          },
          "truncated": {
            "additionalProperties": true,
            "type": "object"
          }
        },
        "required": [
          "id",
          "title",
          "role"
        ],
        "type": "object"
      },
      "ProjectLifecycleResult": {
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "project": {
            "additionalProperties": true,
            "type": "object"
          },
          "projectUrl": {
            "type": "string"
          },
          "studioUrl": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProjectMarkers": {
        "additionalProperties": true,
        "properties": {
          "markers": {
            "items": {
              "properties": {
                "color": {
                  "description": "#rrggbb",
                  "type": "string"
                },
                "end_tick": {
                  "description": "Loop markers only; must be after tick.",
                  "minimum": 1,
                  "type": "integer"
                },
                "id": {
                  "description": "Optional on write; generated when absent.",
                  "maxLength": 64,
                  "type": "string"
                },
                "kind": {
                  "enum": [
                    "marker",
                    "loop"
                  ],
                  "type": "string"
                },
                "name": {
                  "maxLength": 64,
                  "type": "string"
                },
                "tick": {
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "tick"
              ],
              "type": "object"
            },
            "maxItems": 512,
            "type": "array"
          },
          "projectId": {
            "type": "string"
          },
          "revision": {
            "description": "0 = never edited.",
            "minimum": 0,
            "type": "integer"
          },
          "undo": {
            "description": "Writes: PUT these markers at If-Match = expected_revision to undo.",
            "properties": {
              "expected_revision": {
                "type": "integer"
              },
              "markers": {
                "items": {
                  "properties": {
                    "color": {
                      "description": "#rrggbb",
                      "type": "string"
                    },
                    "end_tick": {
                      "description": "Loop markers only; must be after tick.",
                      "minimum": 1,
                      "type": "integer"
                    },
                    "id": {
                      "description": "Optional on write; generated when absent.",
                      "maxLength": 64,
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "marker",
                        "loop"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "maxLength": 64,
                      "type": "string"
                    },
                    "tick": {
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "tick"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "projectId",
          "revision",
          "markers"
        ],
        "type": "object"
      },
      "ProjectSave": {
        "properties": {
          "createdAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "downloadUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "renderStatus": {
            "type": [
              "string",
              "null"
            ]
          },
          "snapshotHash": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "ProjectShare": {
        "description": "The get_project_share summary (fields follow the MCP tool).",
        "properties": {
          "defaultRole": {
            "enum": [
              "viewer",
              "editor"
            ],
            "type": "string"
          },
          "liveRoom": {
            "description": "getProjectShare only: the project's live DAW sync room (Freestyle for Mac) while it exists, else null. Join it with createDawSyncSession / getDawSyncLiveStatus.",
            "properties": {
              "code": {
                "type": "string"
              },
              "members": {
                "minimum": 0,
                "type": "integer"
              }
            },
            "type": [
              "object",
              "null"
            ]
          },
          "people": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          },
          "projectId": {
            "type": "string"
          },
          "shareUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "enum": [
              "private",
              "link",
              "public"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "ProjectSummary": {
        "properties": {
          "artist": {
            "type": [
              "string",
              "null"
            ]
          },
          "bpm": {
            "description": "The STORED explicit tempo; null = none set (the project then runs at its backing's detected tempo, else 120: getProject bpm / bpmSource give the effective value).",
            "type": [
              "number",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "liveRoom": {
            "additionalProperties": false,
            "description": "The project's DAW sync room while it exists (members 0 = inside its grace period), else null. Same as getProjectShare.liveRoom.",
            "properties": {
              "code": {
                "type": "string"
              },
              "members": {
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "code",
              "members"
            ],
            "type": [
              "object",
              "null"
            ]
          },
          "role": {
            "enum": [
              "owner",
              "editor",
              "viewer"
            ],
            "type": "string"
          },
          "shared": {
            "description": "Shared WITH YOU: true when you are not the owner (role editor or viewer), the rule of the web app's \"Shared with you\" marker. It says nothing about whether the owner shared the project with others: see visibility.",
            "type": "boolean"
          },
          "title": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "visibility": {
            "description": "The project's share setting (link = anyone with the share link).",
            "enum": [
              "private",
              "link",
              "public"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "role",
          "shared",
          "visibility",
          "liveRoom"
        ],
        "type": "object"
      },
      "ProjectUpdateResult": {
        "properties": {
          "key": {
            "enum": [
              "C",
              "C#",
              "D",
              "D#",
              "E",
              "F",
              "F#",
              "G",
              "G#",
              "A",
              "A#",
              "B",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "keyChanged": {
            "type": "boolean"
          },
          "ok": {
            "type": "boolean"
          },
          "project": {
            "additionalProperties": true,
            "type": "object"
          },
          "projectUrl": {
            "type": "string"
          },
          "scale": {
            "enum": [
              "major",
              "minor",
              "chromatic",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          },
          "undo": {
            "properties": {
              "key": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "keyAutoDetected": {
                "type": "boolean"
              },
              "scale": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "key",
              "scale",
              "keyAutoDetected"
            ],
            "type": "object"
          }
        },
        "type": "object"
      },
      "RecordingStatus": {
        "properties": {
          "armed": {
            "description": "Armed and counting in (recording starts at the boundary).",
            "type": "boolean"
          },
          "countInBeatsRemaining": {
            "type": [
              "integer",
              "null"
            ]
          },
          "isPlaying": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "positionSeconds": {
            "type": [
              "number",
              "null"
            ]
          },
          "projectId": {
            "type": "string"
          },
          "recording": {
            "description": "The engine is recording a take now.",
            "type": "boolean"
          },
          "recordingInProgress": {
            "description": "Recording or armed for a take.",
            "type": "boolean"
          },
          "recordingStartPositionSeconds": {
            "type": [
              "number",
              "null"
            ]
          },
          "recordingStartSample": {
            "type": [
              "integer",
              "null"
            ]
          },
          "transport": {
            "description": "The engine clock this status was read from.",
            "type": "object"
          }
        },
        "required": [
          "projectId",
          "recording"
        ],
        "type": "object"
      },
      "RegionEffectCatalog": {
        "properties": {
          "effects": {
            "items": {
              "type": "object"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "RegionEffectJob": {
        "properties": {
          "asset": {
            "type": "object"
          },
          "clips_after": {
            "type": "array"
          },
          "dry_run": {
            "type": "boolean"
          },
          "engine_reload_required": {
            "type": "boolean"
          },
          "engine_status": {
            "description": "in_place only: the live engine's /clips/source/swap outcome. On status 'done' it is 'swapped' (the live clip plays the new version and get_clip_waveform reports `revision`) or 'replay' (an earlier apply with this key; nothing re-sent). On status 'failed' with code engine_swap_failed it is the engine's refusal and NOTHING was committed (rolled_back=true: the clip keeps previous source + revision, retry with the same key): source_unavailable (the engine could not fetch/decrypt the new version), revision_conflict, clip_not_loaded, session_project_mismatch, source_not_in_project, sample_rate_mismatch, swap_failed, live_revision_mismatch (the engine answered but does not play the new version), engine_timeout, engine_session_contended, engine_session_not_found, engine_restarting, engine_update_required, engine_error (anything else; other engine codes may appear). rolled_back=false means the new version stayed bound; reload the session.",
            "examples": [
              "swapped",
              "replay",
              "source_unavailable",
              "revision_conflict",
              "clip_not_loaded",
              "session_project_mismatch",
              "source_not_in_project",
              "sample_rate_mismatch",
              "swap_failed",
              "live_revision_mismatch",
              "engine_timeout",
              "engine_session_contended",
              "engine_session_not_found",
              "engine_restarting",
              "engine_update_required",
              "engine_error"
            ],
            "type": "string"
          },
          "engine_swapped": {
            "type": "boolean"
          },
          "idempotency_key": {
            "type": "string"
          },
          "job_id": {
            "type": "string"
          },
          "mode": {
            "enum": [
              "split",
              "in_place"
            ],
            "type": "string"
          },
          "previous_revision": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "region": {
            "type": "object"
          },
          "replay": {
            "type": "boolean"
          },
          "revision": {
            "description": "in_place: the clip's new source revision.",
            "type": "string"
          },
          "rolled_back": {
            "description": "failed in_place apply: whether the new source version was unbound (true = nothing changed).",
            "type": "boolean"
          },
          "status": {
            "enum": [
              "queued",
              "running",
              "done",
              "failed"
            ],
            "type": "string"
          },
          "step": {
            "type": [
              "string",
              "null"
            ]
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          },
          "undo": {
            "type": "object"
          }
        },
        "type": "object"
      },
      "SampleEditRange": {
        "properties": {
          "channel": {
            "minimum": 0,
            "type": "integer"
          },
          "start_frame": {
            "minimum": 0,
            "type": "integer"
          },
          "values": {
            "items": {
              "maximum": 1,
              "minimum": -1,
              "type": "number"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "channel",
          "start_frame",
          "values"
        ],
        "type": "object"
      },
      "SampleEditResult": {
        "properties": {
          "changed_ranges": {
            "type": "array"
          },
          "channel_count": {
            "type": [
              "integer",
              "null"
            ]
          },
          "clip_id": {
            "type": "string"
          },
          "encrypted_at_rest": {
            "type": "boolean"
          },
          "engine_reload_required": {
            "type": "boolean"
          },
          "frame_count": {
            "type": [
              "integer",
              "null"
            ]
          },
          "previous_revision": {
            "type": [
              "string",
              "null"
            ]
          },
          "projectId": {
            "type": "string"
          },
          "replay": {
            "type": "boolean"
          },
          "revision": {
            "pattern": "^[a-f0-9]{16}$",
            "type": "string"
          },
          "sample_rate": {
            "type": [
              "number",
              "null"
            ]
          },
          "undo": {
            "type": "object"
          }
        },
        "required": [
          "clip_id",
          "revision"
        ],
        "type": "object"
      },
      "SampleEditUndoResult": {
        "properties": {
          "clip_id": {
            "type": "string"
          },
          "engine_reload_required": {
            "type": "boolean"
          },
          "projectId": {
            "type": "string"
          },
          "remaining_undo_steps": {
            "type": "integer"
          },
          "replay": {
            "type": "boolean"
          },
          "revision": {
            "type": "string"
          },
          "undone_revision": {
            "type": "string"
          }
        },
        "required": [
          "clip_id",
          "revision"
        ],
        "type": "object"
      },
      "StemJob": {
        "properties": {
          "cached": {
            "description": "splitClipStems only: the backing was split before, so the lanes were created at once (no GPU job).",
            "type": "boolean"
          },
          "deduplicated": {
            "description": "splitClipStems only (200): the project still has every stem lane of an earlier split of this backing; the answer is that job and nothing new was created.",
            "type": "boolean"
          },
          "elapsedSec": {
            "minimum": 0,
            "type": "integer"
          },
          "error": {
            "type": "string"
          },
          "etaSec": {
            "minimum": 0,
            "type": "integer"
          },
          "expectedStems": {
            "items": {
              "enum": [
                "instrumental",
                "vocals",
                "drums",
                "bass",
                "other",
                "guitar",
                "piano",
                "kick",
                "snare",
                "toms",
                "hh",
                "ride",
                "crash"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "jobId": {
            "pattern": "^[a-f0-9]{32}$",
            "type": "string"
          },
          "lanes": {
            "description": "done / undone: every lane the job created, in stem order.",
            "items": {
              "$ref": "#/components/schemas/StemLane"
            },
            "type": "array"
          },
          "mode": {
            "description": "The mode that ran: drums on a full mix runs as drums_full (Demucs, then DrumSep on its drum stem).",
            "enum": [
              "vocals",
              "four_stems",
              "instruments",
              "drums",
              "drums_full",
              null
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "projectId": {
            "type": "string"
          },
          "reload": {
            "description": "done: a headless live session plays the new lanes after this reload (an open Studio loads them by itself).",
            "properties": {
              "hint": {
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "path": {
                "type": "string"
              }
            },
            "required": [
              "method",
              "path"
            ],
            "type": "object"
          },
          "replace": {
            "type": "boolean"
          },
          "requestedMode": {
            "description": "splitClipStems only: the mode you asked for.",
            "enum": [
              "vocals",
              "four_stems",
              "instruments",
              "drums"
            ],
            "type": "string"
          },
          "retryAfterSec": {
            "minimum": 1,
            "type": "integer"
          },
          "sourceClipId": {
            "description": "The split clip, or 'backing'.",
            "type": "string"
          },
          "sourceMuted": {
            "properties": {
              "backing": {
                "type": "boolean"
              },
              "clipIds": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "clipIds",
              "backing"
            ],
            "type": "object"
          },
          "startedAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "description": "processing: on the GPU (poll); failed: nothing was created; done: the stem lanes exist; undone: undoStemJob removed them.",
            "enum": [
              "processing",
              "failed",
              "done",
              "undone"
            ],
            "type": "string"
          },
          "statusUrl": {
            "description": "getStemJob for this job (also the Location header of splitClipStems).",
            "type": "string"
          },
          "undo": {
            "description": "done: the ONE call that removes exactly what this job created (undoStemJob).",
            "properties": {
              "hint": {
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "path": {
                "type": "string"
              }
            },
            "required": [
              "method",
              "path"
            ],
            "type": "object"
          }
        },
        "required": [
          "projectId",
          "jobId",
          "status"
        ],
        "type": "object"
      },
      "StemJobUndo": {
        "properties": {
          "alreadyUndone": {
            "description": "Nothing was left to remove (a replay or a second undo).",
            "type": "boolean"
          },
          "backingUnmuted": {
            "type": "boolean"
          },
          "engine_reload_required": {
            "type": "boolean"
          },
          "jobId": {
            "type": "string"
          },
          "liveEngine": {
            "properties": {
              "applied": {
                "type": "boolean"
              },
              "reason": {
                "type": "string"
              },
              "unloadedLaneIds": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "unmutedClipIds": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "applied"
            ],
            "type": "object"
          },
          "projectId": {
            "type": "string"
          },
          "removedClipIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "removedLaneIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          },
          "undone": {
            "type": "boolean"
          },
          "unmutedSourceClipIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "projectId",
          "jobId",
          "undone",
          "removedLaneIds",
          "removedClipIds"
        ],
        "type": "object"
      },
      "StemLane": {
        "properties": {
          "clipIds": {
            "description": "Every clip the job put on this lane (one per source clip window; loop repeats included).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "deleted": {
            "description": "true once undone (or deleted).",
            "type": "boolean"
          },
          "laneId": {
            "type": "string"
          },
          "muted": {
            "type": "boolean"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "stem": {
            "enum": [
              "instrumental",
              "vocals",
              "drums",
              "bass",
              "other",
              "guitar",
              "piano",
              "kick",
              "snare",
              "toms",
              "hh",
              "ride",
              "crash"
            ],
            "type": "string"
          }
        },
        "required": [
          "laneId",
          "stem",
          "clipIds",
          "muted",
          "deleted"
        ],
        "type": "object"
      },
      "SyncBlob": {
        "properties": {
          "reason": {
            "description": "Why a verified upload was refused (state rejected).",
            "enum": [
              "hash_mismatch",
              "size_mismatch",
              "executable_refused",
              "upload_missing",
              "upload_modified",
              "verification_failed"
            ],
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "size": {
            "minimum": 0,
            "type": "integer"
          },
          "state": {
            "enum": [
              "uploading",
              "verifying",
              "stored",
              "rejected"
            ],
            "type": "string"
          }
        },
        "required": [
          "sha256",
          "size",
          "state"
        ],
        "type": "object"
      },
      "SyncLink": {
        "properties": {
          "created": {
            "description": "createSyncLink only: true when this call created it.",
            "type": "boolean"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "daw": {
            "enum": [
              "fl",
              "logic",
              "audacity",
              "ableton",
              "reaper"
            ],
            "type": "string"
          },
          "headVersionId": {
            "type": [
              "string",
              "null"
            ]
          },
          "linkId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "role": {
            "enum": [
              "owner",
              "editor",
              "viewer"
            ],
            "type": "string"
          },
          "rootName": {
            "type": "string"
          },
          "versionCount": {
            "type": "integer"
          }
        },
        "required": [
          "linkId",
          "projectId",
          "daw",
          "rootName",
          "role",
          "headVersionId",
          "versionCount",
          "createdAt"
        ],
        "type": "object"
      },
      "SyncManifest": {
        "description": "Stored exactly as sent.",
        "properties": {
          "files": {
            "items": {
              "properties": {
                "mode": {
                  "type": "string"
                },
                "originalPath": {
                  "type": "string"
                },
                "path": {
                  "description": "Relative, '/'-separated, no '.' or '..'.",
                  "maxLength": 1024,
                  "type": "string"
                },
                "sha256": {
                  "pattern": "^[0-9a-f]{64}$",
                  "type": "string"
                },
                "size": {
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "path",
                "size",
                "sha256"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "meta": {
            "additionalProperties": true,
            "type": "object"
          },
          "root": {
            "description": "The project file's path (one of files).",
            "type": "string"
          }
        },
        "required": [
          "files",
          "root"
        ],
        "type": "object"
      },
      "SyncUploadSession": {
        "description": "201: upload with uploadUrl. 200: state stored (nothing to upload) or verifying (a commit is being checked; poll getSyncBlob).",
        "properties": {
          "blockCount": {
            "description": "ceil(size / blockSizeBytes).",
            "type": "integer"
          },
          "blockSizeBytes": {
            "type": "integer"
          },
          "maxBlockCount": {
            "description": "Azure's per-blob block limit.",
            "type": "integer"
          },
          "sha256": {
            "type": "string"
          },
          "size": {
            "minimum": 0,
            "type": "integer"
          },
          "state": {
            "enum": [
              "uploading",
              "verifying",
              "stored",
              "rejected"
            ],
            "type": "string"
          },
          "uploadExpiresAt": {
            "format": "date-time",
            "type": "string"
          },
          "uploadUrl": {
            "description": "Azure block-blob SAS for your staging object (create, write and read for Get Block List). A bearer credential: never log or share it.",
            "type": "string"
          }
        },
        "required": [
          "sha256",
          "size",
          "state"
        ],
        "type": "object"
      },
      "SyncVersion": {
        "properties": {
          "author": {
            "properties": {
              "id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "username": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "daw": {
            "type": "string"
          },
          "dawVersion": {
            "type": [
              "string",
              "null"
            ]
          },
          "deviceId": {
            "type": "string"
          },
          "deviceName": {
            "type": "string"
          },
          "fork": {
            "description": "Another version of the link has the same parent.",
            "type": "boolean"
          },
          "linkId": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "parentVersionId": {
            "type": [
              "string",
              "null"
            ]
          },
          "seq": {
            "description": "1, 2, 3 ... per link, in server order.",
            "type": "integer"
          },
          "size": {
            "description": "Sum of the manifest's file sizes.",
            "type": "integer"
          },
          "versionId": {
            "type": "string"
          }
        },
        "required": [
          "versionId",
          "linkId",
          "parentVersionId",
          "author",
          "deviceId",
          "deviceName",
          "daw",
          "dawVersion",
          "message",
          "createdAt",
          "size",
          "seq",
          "fork"
        ],
        "type": "object"
      },
      "SyncVersionDetail": {
        "properties": {
          "author": {
            "properties": {
              "id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "username": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "daw": {
            "type": "string"
          },
          "dawVersion": {
            "type": [
              "string",
              "null"
            ]
          },
          "deviceId": {
            "type": "string"
          },
          "deviceName": {
            "type": "string"
          },
          "fork": {
            "description": "Another version of the link has the same parent.",
            "type": "boolean"
          },
          "linkId": {
            "type": "string"
          },
          "manifest": {
            "$ref": "#/components/schemas/SyncManifest"
          },
          "message": {
            "type": "string"
          },
          "parentVersionId": {
            "type": [
              "string",
              "null"
            ]
          },
          "seq": {
            "description": "1, 2, 3 ... per link, in server order.",
            "type": "integer"
          },
          "size": {
            "description": "Sum of the manifest's file sizes.",
            "type": "integer"
          },
          "versionId": {
            "type": "string"
          }
        },
        "required": [
          "versionId",
          "linkId",
          "parentVersionId",
          "author",
          "deviceId",
          "deviceName",
          "daw",
          "dawVersion",
          "message",
          "createdAt",
          "size",
          "seq",
          "fork",
          "manifest"
        ],
        "type": "object"
      },
      "TakeStackResult": {
        "properties": {
          "activeClipId": {
            "description": "The audible take.",
            "type": [
              "string",
              "null"
            ]
          },
          "changed": {
            "type": "boolean"
          },
          "engine_applied": {
            "type": "boolean"
          },
          "engine_reload_required": {
            "type": "boolean"
          },
          "groupId": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "takes": {
            "description": "The stack, oldest take first.",
            "items": {
              "$ref": "#/components/schemas/Clip"
            },
            "type": "array"
          },
          "timelineRevision": {
            "type": [
              "string",
              "null"
            ]
          },
          "undo": {
            "properties": {
              "clip_id": {
                "description": "PUT this clip's take again to undo (null: the stack had no audible take).",
                "type": [
                  "string",
                  "null"
                ]
              },
              "op": {
                "enum": [
                  "take"
                ],
                "type": "string"
              }
            },
            "required": [
              "op"
            ],
            "type": "object"
          }
        },
        "required": [
          "projectId",
          "groupId",
          "takes",
          "engine_applied",
          "engine_reload_required"
        ],
        "type": "object"
      },
      "TempoStretchJob": {
        "additionalProperties": true,
        "properties": {
          "automation": {
            "description": "Automation envelopes rescaled with the stretch: clip envelopes by the clip's measured render ratio, pattern-placement and lane envelopes by old/new BPM.",
            "items": {
              "properties": {
                "automation_id": {
                  "type": "string"
                },
                "clip_id": {
                  "type": "string"
                },
                "factor": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "revision_after": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "revision_before": {
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "backing_converted": {
            "description": "The backing was turned into one full-length clip (backing/split whole) so it stretches too; undo puts the backing row back.",
            "type": "boolean"
          },
          "backing_restore": {
            "properties": {
              "code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "error": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "track_ids": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "type": "object"
          },
          "backing_restore_failed": {
            "description": "After a failed stretch or an undo, the backing that the stretch converted into a clip could not be put back (details in backing_restore): the backing is still one full-length clip.",
            "type": "boolean"
          },
          "bpm": {
            "description": "= to_bpm.",
            "type": "number"
          },
          "clips": {
            "items": {
              "properties": {
                "backing": {
                  "type": "boolean"
                },
                "duration_sec_after": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "duration_sec_before": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "kind": {
                  "enum": [
                    "audio",
                    "loop_repeat",
                    "move"
                  ],
                  "type": "string"
                },
                "length_ratio": {
                  "description": "Measured new/old length (audio: from the render; loop repeats: their parent's).",
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "render": {
                  "properties": {
                    "job_id": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "source_bpm": {
                      "type": "number"
                    },
                    "status": {
                      "type": "string"
                    },
                    "target_bpm": {
                      "type": "number"
                    }
                  },
                  "type": "object"
                },
                "start_ms_after": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "start_ms_before": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "track_id": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "engine": {
            "properties": {
              "at": {
                "type": "string"
              },
              "attempts": {
                "type": "integer"
              },
              "engine_reload_required": {
                "type": "boolean"
              },
              "reload": {
                "description": "pending = the save is done and the engine reload is running in the background (it never blocks this request); read the job again.",
                "enum": [
                  "pending",
                  "reloaded",
                  "no_session",
                  "failed"
                ],
                "type": "string"
              }
            },
            "type": "object"
          },
          "engine_reload": {
            "properties": {
              "method": {
                "type": "string"
              },
              "operationId": {
                "type": "string"
              },
              "path": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "engine_reload_required": {
            "description": "true = the stretch (or its undo) is fully SAVED but the open live engine session could not be reloaded after its retries, so it still plays the previous arrangement. Call reloadEngineSession (POST engine:reload; the job's engine_reload block) or read the job again (each read retries in the background). false when no session is open: the next open reads the saved project.",
            "type": "boolean"
          },
          "error": {
            "properties": {
              "code": {
                "type": "string"
              },
              "details": {
                "description": "tempo_stretch_project_changed: {changed: [...]} names what was edited while the job ran.",
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "first_beat_sec_after": {
            "description": "The bar-ruler anchor (backing first downbeat, project seconds) after a stretch that stretched the backing; null when unchanged.",
            "type": [
              "number",
              "null"
            ]
          },
          "first_beat_sec_before": {
            "type": [
              "number",
              "null"
            ]
          },
          "from_bpm": {
            "type": "number"
          },
          "job_id": {
            "type": "string"
          },
          "lyrics": {
            "properties": {
              "rescaled": {
                "description": "The project's timed custom lyrics (time_ms) were scaled by old/new BPM with the stretch; undo restores the exact previous times.",
                "type": "boolean"
              },
              "timed_lines": {
                "type": "integer"
              }
            },
            "type": "object"
          },
          "mode": {
            "enum": [
              "stretch_audio"
            ],
            "type": "string"
          },
          "placements": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "progress": {
            "properties": {
              "renders_succeeded": {
                "type": "integer"
              },
              "renders_total": {
                "type": "integer"
              }
            },
            "type": "object"
          },
          "projectId": {
            "type": "string"
          },
          "ratio": {
            "description": "old_bpm / new_bpm: the start/length multiple.",
            "type": "number"
          },
          "replay": {
            "type": "boolean"
          },
          "retryAfterSec": {
            "type": "integer"
          },
          "status": {
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed",
              "undone"
            ],
            "type": "string"
          },
          "status_url": {
            "type": "string"
          },
          "timing_map_revision": {
            "type": [
              "integer",
              "null"
            ]
          },
          "timing_map_revision_before": {
            "type": [
              "integer",
              "null"
            ]
          },
          "to_bpm": {
            "type": "number"
          },
          "undo": {
            "properties": {
              "action": {
                "type": "string"
              },
              "available": {
                "type": "boolean"
              },
              "method": {
                "type": "string"
              },
              "path": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "undone_at": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "projectId",
          "job_id",
          "mode",
          "status",
          "from_bpm",
          "to_bpm",
          "ratio"
        ],
        "type": "object"
      },
      "TimingMap": {
        "additionalProperties": true,
        "properties": {
          "bpm_at_start": {
            "type": "number"
          },
          "document": {
            "type": "object"
          },
          "engine": {
            "description": "Writes: engine resync status / confirm rule.",
            "type": "object"
          },
          "fingerprint": {
            "type": "string"
          },
          "history": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "implicit": {
            "description": "true = derived from the scalar BPM.",
            "type": "boolean"
          },
          "inverse": {
            "description": "Writes: the call that restores the previous content.",
            "type": "object"
          },
          "is_constant_tempo": {
            "type": "boolean"
          },
          "meter": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "ppq": {
            "type": "integer"
          },
          "projectId": {
            "type": "string"
          },
          "replayed": {
            "type": "boolean"
          },
          "revision": {
            "description": "0 = never edited.",
            "minimum": 0,
            "type": "integer"
          },
          "tempo": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "undo": {
            "properties": {
              "available": {
                "type": "boolean"
              },
              "restores_revision": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "type": "object"
          }
        },
        "required": [
          "projectId",
          "revision",
          "implicit",
          "fingerprint",
          "ppq"
        ],
        "type": "object"
      },
      "TransportState": {
        "additionalProperties": true,
        "description": "Engine transport state: position, playing, loop and play_range {active, start_sec, end_sec, start_frame, end_frame, stop_reason, stopped_at_frame}.",
        "type": "object"
      },
      "TurnCredentials": {
        "properties": {
          "credential": {
            "type": "string"
          },
          "expiresAt": {
            "type": [
              "integer",
              "string"
            ]
          },
          "urls": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "username": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "oauth2": {
        "description": "The same OAuth 2.1 tokens the Freestyle MCP connector uses (discovery: /.well-known/oauth-authorization-server).",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "/oauth/authorize",
            "refreshUrl": "/api/oauth/token",
            "scopes": {
              "ai:use": "Run Mozart AI commands on your projects.",
              "audio:listen": "Render and listen to short excerpts of your projects.",
              "daw:read": "Read live studio state: transport, tracks, mixer, plugins and history.",
              "daw:write": "Change your projects through Mozart's reviewed DAW actions.",
              "exports:read": "List and download your rendered exports.",
              "library:read": "Browse presets, sound packs, drum kits, templates and the marketplace.",
              "library:write": "Save, publish and manage your presets, drum kits and marketplace assets.",
              "live:read": "See your live sessions, rooms, members and queues.",
              "live:write": "Create, join, manage and end live sessions and their queues.",
              "media:upload": "Add audio files and YouTube backing tracks to your projects.",
              "messages:read": "Read your direct message conversations.",
              "messages:write": "Send direct messages and start conversations.",
              "offline_access": "Stay connected with a refresh token (no re-login for 90 days).",
              "organization:manage": "Manage your organization as an admin: members, invites and partner apps.",
              "profile:read": "See your Freestyle profile (name, username, avatar).",
              "profile:write": "Edit your profile, username, avatar, settings and account (including deletion).",
              "projects:list": "List the Freestyle projects available to your account.",
              "projects:read": "Read project contents: lanes, takes, backing track, key and tempo.",
              "projects:write": "Create, rename, duplicate, share and delete your projects.",
              "social:read": "Browse Discover, posts, comments, profiles, people and your notifications.",
              "social:write": "Post your projects, like, comment, follow people, manage friends and blocks."
            },
            "tokenUrl": "/api/oauth/token"
          }
        },
        "type": "oauth2"
      },
      "studioSession": {
        "description": "First-party Freestyle Studio session token (all user scopes).",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Versioned REST API for DAW UIs and agents (conventions: docs/STUDIO_API_V1_CONVENTIONS.md). Errors use one envelope; mutations take Idempotency-Key; revisions are ETags; lists use cursor pagination. Any path answers 405 method_not_allowed (with an Allow header) for a method it does not serve, and OPTIONS lists the real methods; upload endpoints answer 413 for an oversized body.",
    "title": "Freestyle Studio API",
    "version": "1.0.0"
  },
  "jsonSchemaDialect": "https://spec.openapis.org/oas/3.1/dialect/base",
  "openapi": "3.1.0",
  "paths": {
    "/catalog/beats": {
      "get": {
        "description": "Freestyle's curated beat catalog (only beats whose audio is stored, so they open instantly): free text, genre, mood, artist, key and BPM range. Use a beat's id as createProject source.beatId. Paged through the catalog's own pages (limit at most 25).",
        "operationId": "searchCatalogBeats",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "maxLength": 120,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "genre",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "mood",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "artist",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "key",
            "required": false,
            "schema": {
              "maxLength": 8,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "bpm_min",
            "required": false,
            "schema": {
              "maximum": 400,
              "minimum": 20,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "bpm_max",
            "required": false,
            "schema": {
              "maximum": 400,
              "minimum": 20,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 12,
              "maximum": 25,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Search the beat catalog",
        "tags": [
          "catalog"
        ],
        "x-freestyle-mcp-equivalent": "search_beats",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "projects:read"
      }
    },
    "/catalog/drum-kits": {
      "get": {
        "description": "The caller's saved drum kits and the default kits (isDefault=true). project_id (viewer role) scopes kits to one project as the drum pad does.",
        "operationId": "listCatalogDrumKits",
        "parameters": [
          {
            "in": "query",
            "name": "project_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "library:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List drum kits",
        "tags": [
          "catalog"
        ],
        "x-freestyle-mcp-equivalent": "list_drum_kits",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "library:read"
      }
    },
    "/catalog/effect-presets": {
      "get": {
        "description": "The app's built-in preset catalogs: kind=autotune (category, retune / humanize), nectar, or filter (names for setTrackFilters).",
        "operationId": "listCatalogEffectPresets",
        "parameters": [
          {
            "in": "query",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "autotune",
                "nectar",
                "filter"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "maxLength": 120,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List AutoTune / Nectar / filter presets",
        "tags": [
          "catalog"
        ],
        "x-freestyle-mcp-equivalent": "list_effect_presets",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/catalog/marketplace": {
      "get": {
        "description": "Public marketplace assets of one type (beat kits, patterns, sound packs, sounds, plug-in presets, audio-effect presets) with optional search text, category and creator. One window of up to 50 cards, cursor-paged.",
        "operationId": "browseCatalogMarketplace",
        "parameters": [
          {
            "in": "query",
            "name": "asset_type",
            "required": true,
            "schema": {
              "enum": [
                "beat_kit",
                "pattern",
                "sound_pack",
                "sound",
                "plugin",
                "audio_effect"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "maxLength": 40,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "creator_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "library:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Browse the marketplace",
        "tags": [
          "catalog"
        ],
        "x-freestyle-mcp-equivalent": "browse_marketplace",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "library:read"
      }
    },
    "/catalog/marketplace/feed": {
      "get": {
        "description": "The ranked, seeded discovery feed across every public marketplace item type. The order is fixed by seed (default 0), so pages never repeat or skip; pass another seed to reshuffle. Paged through the feed's own offset (limit at most 50).",
        "operationId": "listCatalogMarketplaceFeed",
        "parameters": [
          {
            "in": "query",
            "name": "tab",
            "required": false,
            "schema": {
              "default": "all",
              "enum": [
                "all",
                "kicks",
                "snares",
                "hats",
                "808s",
                "toms",
                "samples",
                "sound_packs",
                "beat_kits",
                "patterns",
                "vocal_chains",
                "plugin_presets",
                "audio_effects",
                "patches"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "subfilter",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "seed",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 25,
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "library:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "The marketplace discovery feed",
        "tags": [
          "catalog"
        ],
        "x-freestyle-mcp-equivalent": "marketplace_feed",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "library:read"
      }
    },
    "/catalog/plugin-presets": {
      "get": {
        "description": "Public plug-in presets on the marketplace (asset type plugin). Factory presets of plug-ins with a preset catalog are listed by listCatalogEffectPresets and inlined by listPluginCatalog include_presets=true.",
        "operationId": "listCatalogPluginPresets",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "maxLength": 40,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "creator_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "library:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Search plug-in presets",
        "tags": [
          "catalog"
        ],
        "x-freestyle-mcp-equivalent": "browse_marketplace(plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "library:read"
      }
    },
    "/catalog/plugin-presets/nectar/{preset_name}": {
      "get": {
        "description": "A Nectar factory preset's module chain, module bypasses and parameter list.",
        "operationId": "getCatalogNectarPreset",
        "parameters": [
          {
            "in": "path",
            "name": "preset_name",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get a Nectar preset",
        "tags": [
          "catalog"
        ],
        "x-freestyle-mcp-equivalent": "get_nectar_preset",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/catalog/preset-packs/{asset_id}/items": {
      "get": {
        "description": "The presets inside one marketplace preset pack the caller can see, paged through the pack's own offset. Addable rows carry `register` ({\"preset_pack_item_id\": id}, or {\"sound_pack_item_id\": id} for packs served from sound-pack rows) for pattern-samples:register; canAdd=false rows give canAddReason.",
        "operationId": "listCatalogPresetPackItems",
        "parameters": [
          {
            "in": "path",
            "name": "asset_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "library:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List a preset pack's items",
        "tags": [
          "catalog"
        ],
        "x-freestyle-mcp-equivalent": "list_preset_pack_items",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "library:read"
      }
    },
    "/catalog/sounds": {
      "get": {
        "description": "Playable sound rows across every inventory the caller can reach (public assets, their own, shared and library-added packs). One window of up to 100 rows, cursor-paged. Every row with canAdd=true carries `register` (e.g. {\"sound_pack_item_id\": id}): send it as the body of POST /projects/{project_id}/pattern-samples:register to add the sound; rows with canAdd=false say why in canAddReason (not_audio, not_in_storage). Auditioning: a row's previewUrl / audioUrl is the Studio's own same-origin byte route (/api/marketplace/...), which needs a signed-in Studio browser session and answers 401 to an OAuth bearer token, so do not fetch or proxy it. To hear a row without changing any project call previewCatalogSound (GET /catalog/sounds/{id}/preview): it returns a short-lived credential-free previewUrl. Inside a project you can also register the sound (above) and audition it in the live engine with POST /projects/{project_id}/engine/actions/preview_pattern_sample {audio_file_id} (heard on the monitor stream), and draw it with getPatternSampleWaveform. Splice rows use previewCatalogSpliceSound.",
        "operationId": "browseCatalogSounds",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "library:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Browse sounds",
        "tags": [
          "catalog"
        ],
        "x-freestyle-mcp-equivalent": "browse_sounds",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "library:read"
      }
    },
    "/catalog/sounds/{item_id}/preview": {
      "get": {
        "description": "Audition a Sound Library row (browseCatalogSounds) without adding it to a project: returns a short-lived (under one hour) credential-free previewUrl for that sound's audio; play it directly (e.g. an <audio> element). Nothing is stored and no project changes. Only sounds the caller can browse are previewable (public, own, shared or library-added); anything else is 404. Each call counts against the media preview limits (per-user mint rate and a distinct-sounds-per-hour quota; repeat previews of one sound in the same window are free): over them the answer is 429 rate_limited with Retry-After. Sounds stored encrypted come back with previewRequiresAuth: true and a previewUrl that is the API path of streamCatalogSoundPreview (fetch it with your bearer token). 409 preview_unavailable: the sound has no playable stored audio yet (not scanned). Splice rows use previewCatalogSpliceSound.",
        "operationId": "previewCatalogSound",
        "parameters": [
          {
            "in": "path",
            "name": "item_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogSoundPreview"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "preview_unavailable: the sound has no directly playable stored audio."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "library:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Preview a Sound Library sound",
        "tags": [
          "catalog"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "library:read"
      }
    },
    "/catalog/sounds/{item_id}/preview/audio": {
      "get": {
        "description": "The audio bytes of one Sound Library row (browseCatalogSounds), streamed by the API for sounds that have no direct storage URL (previewCatalogSound returns this path with previewRequiresAuth: true). Send your bearer token; supports HTTP Range. Same access rule as previewCatalogSound (404 for sounds the caller cannot browse) and counted against the same preview limits. Nothing is stored and no project changes.",
        "operationId": "streamCatalogSoundPreview",
        "parameters": [
          {
            "in": "path",
            "name": "item_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "audio/mpeg": {
                "schema": {
                  "contentMediaType": "audio/*",
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "library:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Stream a Sound Library sound's audio",
        "tags": [
          "catalog"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "library:read"
      }
    },
    "/catalog/splice-sounds": {
      "get": {
        "description": "Splice Sounds through the caller's linked Splice account (q required; optional bpm, key, genre). Downloading a sound spends a credit and is not part of this API. Calls to Splice pay the api_v1:external_search budget (120/min per user, the MCP connector's ceiling). Rows are canAdd=false (canAddReason splice_download_required): only downloaded audio can be registered.",
        "operationId": "searchCatalogSpliceSounds",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "required": true,
            "schema": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "bpm",
            "required": false,
            "schema": {
              "maxLength": 16,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "key",
            "required": false,
            "schema": {
              "maxLength": 16,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "genre",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "library:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Search Splice sounds",
        "tags": [
          "catalog"
        ],
        "x-freestyle-budgets": [
          {
            "bucket": "api_v1:external_search",
            "default": 120,
            "perSeconds": 60
          }
        ],
        "x-freestyle-mcp-equivalent": "search_splice_sounds",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "library:read"
      }
    },
    "/catalog/splice-sounds/{sound_id}/preview": {
      "get": {
        "description": "A short-lived preview URL streamed from Splice's CDN; nothing is added to Freestyle. Fetch it again when it expires. This is the supported way for an API client to hear a Splice sound before downloading it (the URL needs no Freestyle credentials). For Freestyle Sound Library rows use previewCatalogSound.",
        "operationId": "previewCatalogSpliceSound",
        "parameters": [
          {
            "in": "path",
            "name": "sound_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "library:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Preview a Splice sound",
        "tags": [
          "catalog"
        ],
        "x-freestyle-budgets": [
          {
            "bucket": "api_v1:external_search",
            "default": 120,
            "perSeconds": 60
          }
        ],
        "x-freestyle-mcp-equivalent": "preview_splice_sound",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "library:read"
      }
    },
    "/catalog/vocal-chain-presets": {
      "get": {
        "description": "source=library (defaults, your own and saved presets; song_project_id adds that song's default, viewer role) or source=marketplace (public presets, searchable).",
        "operationId": "listCatalogVocalChainPresets",
        "parameters": [
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "default": "library",
              "enum": [
                "library",
                "marketplace"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "enum": [
                "vocal",
                "audio",
                "guitar",
                "instrument",
                "drums",
                "bus"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "filter",
            "required": false,
            "schema": {
              "maxLength": 40,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "song_project_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List vocal chain presets",
        "tags": [
          "catalog"
        ],
        "x-freestyle-mcp-equivalent": "list_vocal_chain_presets",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/catalog/vocal-chain-presets/{preset_id}": {
      "get": {
        "description": "One preset (visible to the caller) with its chain: phase-1 (voice model, super-resolution) and the plug-in list.",
        "operationId": "getCatalogVocalChainPreset",
        "parameters": [
          {
            "in": "path",
            "name": "preset_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get a vocal chain preset",
        "tags": [
          "catalog"
        ],
        "x-freestyle-mcp-equivalent": "get_vocal_chain_preset",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/engine/actions": {
      "get": {
        "description": "Every Pro catalog action with its typed argument schema, family, risk, mutates, required scope and project role, rate class and the typed operation (engine_<name>) that runs it. Not project-specific.",
        "operationId": "listEngineActions",
        "parameters": [
          {
            "description": "Only this family.",
            "in": "query",
            "name": "family",
            "required": false,
            "schema": {
              "maxLength": 32,
              "type": "string"
            }
          },
          {
            "description": "Only reads (false) or writes (true).",
            "in": "query",
            "name": "mutates",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/EngineActionCatalogEntry"
                      },
                      "type": "array"
                    },
                    "families": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "families"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List engine actions",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "list_pro_capabilities",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/instruments/catalog": {
      "get": {
        "description": "Every instrument generator by catalog id, with its engine segment, captured patch catalog (LABS, Omnisphere, Splice INSTRUMENT, Xpand!2) and whether createInstrumentLane accepts it. With project_id (editor), availability is checked on that project's engine host. Enterprise organization members only see free instruments (free=true).",
        "operationId": "listInstrumentCatalog",
        "parameters": [
          {
            "description": "Substring of the id or name.",
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Check host availability on this project's engine (editor role).",
            "in": "query",
            "name": "project_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/CatalogInstrument"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List the instrument catalog",
        "tags": [
          "instruments"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/interactive-sessions/{session_id}": {
      "delete": {
        "description": "Revoke the session: its socket closes within seconds and its tickets stop working. Closing an already closed session is not an error (already_closed=true).",
        "operationId": "closeInteractiveSession",
        "parameters": [
          {
            "in": "path",
            "name": "session_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Close an interactive editing session",
        "tags": [
          "realtime"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "close_interactive_session",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/library/assets": {
      "get": {
        "description": "The caller's Sound Library for one asset type: assets they made, added from the marketplace, were invited to, plus the built-in packs.",
        "operationId": "listLibraryAssets",
        "parameters": [
          {
            "description": "Marketplace asset type.",
            "in": "query",
            "name": "asset_type",
            "required": true,
            "schema": {
              "enum": [
                "beat_kit",
                "pattern",
                "sound_pack",
                "sound",
                "plugin",
                "audio_effect"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/LibraryAsset"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "library:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List my Sound Library",
        "tags": [
          "media"
        ],
        "x-freestyle-mcp-equivalent": "list_my_library_assets",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "library:read"
      }
    },
    "/media/upload": {
      "post": {
        "description": "base64 file bytes (max 25 MB decoded; larger files: addAudioFromUrl). Targets: project_id + kind vocal (new vocal lane + take with the default chain) | audio | backing (replaces the backing); project_id + track_id adds the take to that lane; new_project=true creates a project from the file (Pro). Editor role on project_id. The app's upload scanner validates the bytes; the app-wide upload admission (concurrency + byte quotas) applies, so an Idempotency-Key header is required. X-Freestyle-Upload-Intent: media (or omit it); metadata-only is refused. start_ms (alias startMs, integer ms, default 0) places the new vocal/audio clip on the timeline in the same write (not for kind=backing / new_project). When the project is open in a live session the new clip is attached to it in the same call (engine_attached=true): its waveform, sample edits and playback work at once. A project with no open session is never cold-loaded for this (engine_attached=false; the next session load reads the clip). A saved clip the open session could not load answers 201 with engine_reload_required=true (and engineError).",
        "operationId": "uploadAudio",
        "parameters": [
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "base64": {
                    "description": "File bytes, base64 (a data: URL is accepted).",
                    "minLength": 4,
                    "type": "string"
                  },
                  "filename": {
                    "maxLength": 160,
                    "type": "string"
                  },
                  "kind": {
                    "default": "vocal",
                    "enum": [
                      "vocal",
                      "audio",
                      "backing"
                    ],
                    "type": "string"
                  },
                  "new_project": {
                    "default": false,
                    "type": "boolean"
                  },
                  "project_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "startMs": {
                    "description": "Alias of start_ms.",
                    "maximum": 86400000,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "start_ms": {
                    "default": 0,
                    "description": "Timeline position of the new clip in ms (vocal/audio only).",
                    "maximum": 86400000,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "title": {
                    "maxLength": 120,
                    "type": "string"
                  },
                  "track_id": {
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "base64"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAddResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "413": {
            "description": "upload_too_large / file_too_large: the decoded file exceeds the limit."
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "media:upload"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Upload an audio file",
        "tags": [
          "media"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "upload_audio",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "media:upload"
      }
    },
    "/plugins/catalog": {
      "get": {
        "description": "Every plug-in a lane or bus can host, by catalog id: kind (effect / instrument), format (vst3 / native), category and preset catalog. With project_id (editor), instrument availability is checked on that project's engine host; native effects are always available and hosted effects report installed=null (the engine has no probe for them). hasEditor is false for native effects (no editor window; openPluginEditor answers 409 editor_not_available). include_presets=true inlines the named presets of plug-ins that have a preset catalog. Enterprise organization members only see free plug-ins (free=true).",
        "operationId": "listPluginCatalog",
        "parameters": [
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "enum": [
                "effect",
                "instrument"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "enum": [
                "vst3",
                "native"
              ],
              "type": "string"
            }
          },
          {
            "description": "Substring of the id, name or category.",
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Check host availability on this project's engine (editor role).",
            "in": "query",
            "name": "project_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include_presets",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/CatalogPlugin"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List the plug-in catalog",
        "tags": [
          "plugin_catalog"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/plugins/catalog/{plugin_id}": {
      "get": {
        "description": "One catalog entry by id, with its named presets when it has a preset catalog.",
        "operationId": "getCatalogPlugin",
        "parameters": [
          {
            "in": "path",
            "name": "plugin_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogPlugin"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get one catalog plug-in",
        "tags": [
          "plugin_catalog"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects": {
      "get": {
        "description": "Owned projects (not removed from home) and projects shared with the caller, newest first, each with the caller's role. shared=true means shared WITH YOU (you are an editor or viewer, not the owner), exactly like the web app's library marker; a project you own is shared:false even when its visibility is link or public. visibility is the project's share setting; liveRoom its DAW sync room ({code, members}) or null.",
        "operationId": "listProjects",
        "parameters": [
          {
            "description": "Matches title or artist.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "maxLength": 120,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include_shared",
            "required": false,
            "schema": {
              "default": true,
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/ProjectSummary"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:list"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List projects",
        "tags": [
          "projects"
        ],
        "x-freestyle-mcp-equivalent": "list_projects",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "projects:list"
      },
      "post": {
        "description": "source.type: empty (default), youtube / url (source.url; may return importJob to poll), catalog (source.beatId). Same free-tier capacity rules as the app. A youtube / url source is a server-side fetch: it pays the dedicated api_v1:fetch budget. bpm (20-400, optional) is the initial project tempo (an explicit tempo: project.bpmSource \"set\"); without it the project runs at the backing's detected tempo, else 120 BPM, and project.bpm already says so (bpmSource \"backing\" / \"default\"). Capacity: creating never fails on a project cap; like the app it makes room by soft-closing ONE of the account's least-recently-used projects (empty ones first) once the account holds more than 50 active or 10 empty projects (removed_from_home_at, nothing is deleted; every route then answers 404 for it). A project created, written, opened or attached to an engine session in the last 30 minutes is never the one closed, so a new draft stays readable while a client is setting it up, even when the same account creates more projects meanwhile; an empty draft left untouched for longer can be closed by a later create.",
        "operationId": "createProject",
        "parameters": [
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bpm": {
                    "description": "Initial project tempo (quarter notes per minute).",
                    "maximum": 400,
                    "minimum": 20,
                    "type": "number"
                  },
                  "source": {
                    "properties": {
                      "beatId": {
                        "maxLength": 64,
                        "type": "string"
                      },
                      "type": {
                        "enum": [
                          "empty",
                          "youtube",
                          "catalog",
                          "url"
                        ],
                        "type": "string"
                      },
                      "url": {
                        "maxLength": 2048,
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "title": {
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectLifecycleResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Create a project",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "create_project",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}": {
      "delete": {
        "description": "Owner only. Removes the project from the library (the app's soft delete). Destructive: pass confirm=true (query or body) after the user agreed; without it the answer is 400 confirmation_required.",
        "operationId": "deleteProject",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirm": {
                    "default": false,
                    "description": "Must be true: the user explicitly confirmed this destructive action.",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Delete a project",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "delete_project",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "owner",
        "x-freestyle-scope": "projects:write"
      },
      "get": {
        "description": "Tempo/key, backing, lanes, clips, patterns, share state and the caller's role. bpm is the effective tempo, never null (bpmSource set | backing | default; a new project without a tempo runs at 120). Each clip card, and backing when the project has one, carries audioSourceId: an opaque id of the audio it plays, shared by clips cut from the same file (the key for a client waveform cache, see /docs/waveforms.html). ETag = \"<timelineRevision>.<content hash>\": it moves on every change to this document (title, key/scale, tempo, plug-in chains, sharing as well as the timeline), so If-None-Match answers 304 only when nothing here changed. The whole ETag is also accepted as If-Match on clip / lane edits, which compare its timeline part (timelineRevision).",
        "operationId": "getProject",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get a project",
        "tags": [
          "projects"
        ],
        "x-freestyle-mcp-equivalent": "get_project",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "projects:read"
      },
      "patch": {
        "description": "Set any of title, key and scale (at least one). key/scale are the project's musical key (getProject key/scale, the Studio's key pill): key is one of the 12 sharp pitch classes, scale major | minor | chromatic. A set key is manual: the Studio's auto-detection never overwrites it. key=null clears key and scale (back to Auto); scale alone keeps the stored key; a key without scale keeps the stored scale (major when none). Deterministic, no analysis (startKeyAnalysis detects a key from audio). Idempotent: the stored value is a no-op (keyChanged=false). The reply carries undo {key, scale, keyAutoDetected} (PATCH it back to undo exactly: an auto-detected key comes back as auto-detected, a legacy key without a scale as {key, scale: null}, a legacy scale without a key as {key: null, scale}, which clears both) whenever key/scale were sent. Optional expected {key, scale}: the stored values must match or nothing is written (409 key_changed). Every field is validated first and title + key are written in ONE transaction under the project row lock: a refused request writes nothing. getProject's ETag is \"<timelineRevision>.<content hash>\": a title/key/scale change moves it (the content part) but not timelineRevision, so an If-Match clip / lane edit (which compares only the timeline part) still succeeds after a rename.",
        "operationId": "renameProject",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expected": {
                    "additionalProperties": false,
                    "properties": {
                      "key": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "scale": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "key": {
                    "enum": [
                      "C",
                      "C#",
                      "D",
                      "D#",
                      "E",
                      "F",
                      "F#",
                      "G",
                      "G#",
                      "A",
                      "A#",
                      "B",
                      null
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "keyAutoDetected": {
                    "description": "Undo payloads only: restores the auto-detected flag with key/scale (any other write is manual).",
                    "type": "boolean"
                  },
                  "scale": {
                    "enum": [
                      "major",
                      "minor",
                      "chromatic",
                      null
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "title": {
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectUpdateResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Update a project (title, key, scale)",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "rename_project / set_project_key",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/ai/commands": {
      "post": {
        "description": "A natural-language instruction, exactly like the Studio assistant bar (mixing, transport, tempo, clips, patterns, sound search, composing). Mozart plans validated engine actions, executes them, records undo and replies. Destructive steps are refused until confirm_destructive=true. With a generator other than mozart it starts a background job (poll getMozartAiJob).",
        "operationId": "mozartAiCommand",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "command": {
                    "maxLength": 480,
                    "minLength": 1,
                    "type": "string"
                  },
                  "confirm_destructive": {
                    "default": false,
                    "type": "boolean"
                  },
                  "generator": {
                    "maxLength": 32,
                    "type": "string"
                  },
                  "reference": {
                    "maxLength": 80,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "command"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiCommandResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "ai:use"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Run a Mozart AI command",
        "tags": [
          "ai"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "mozart_ai_command",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "ai:use"
      }
    },
    "/projects/{project_id}/ai/jobs/{job_id}": {
      "get": {
        "description": "Progress and result of a background Mozart AI generation: status, current step and, when done, the new lane/clip. status unknown = finished or no longer tracked.",
        "operationId": "getMozartAiJob",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiJob"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "ai:use"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get a Mozart AI job",
        "tags": [
          "ai"
        ],
        "x-freestyle-mcp-equivalent": "get_mozart_ai_job",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "ai:use"
      }
    },
    "/projects/{project_id}/ai:undo": {
      "post": {
        "description": "Revert the latest undoable Mozart AI / Pro action on the project (the Studio's undo); open Studios see the change.",
        "operationId": "undoLastAiAction",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Undo the last Mozart AI action",
        "tags": [
          "ai"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "undo_last_ai_action",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/audio:fromUrl": {
      "post": {
        "description": "Download a public https audio file and add it as kind vocal (new vocal lane + take with the default chain) | audio | backing. Validated by the app's upload scanner. The downloaded bytes pay the upload admission (concurrency + byte/storage quotas) and the call pays the dedicated api_v1:fetch budget (30/hour per user by default).",
        "operationId": "addAudioFromUrl",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "kind": {
                    "default": "vocal",
                    "enum": [
                      "vocal",
                      "audio",
                      "backing"
                    ],
                    "type": "string"
                  },
                  "title": {
                    "maxLength": 120,
                    "type": "string"
                  },
                  "url": {
                    "maxLength": 8192,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "url"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaAddResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "413": {
            "description": "file_too_large: the downloaded file exceeds the limit."
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "media:upload"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Add audio from a URL",
        "tags": [
          "media"
        ],
        "x-freestyle-budgets": [
          {
            "bucket": "api_v1:fetch",
            "default": 30,
            "perSeconds": 3600
          }
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "add_audio_from_url",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "media:upload"
      }
    },
    "/projects/{project_id}/automation": {
      "get": {
        "description": "Every envelope of the project's clips, pattern placements and backing, with all points at full precision, plus lane volume / pan envelopes (clipId 'lane:<lane_id>'). Default clip-gain curves are included as persisted=false (no id). Filter by clip, lane or plugin target.",
        "operationId": "listAutomation",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Only this clip ('pattern:<id>' / 'backing:<id>' too).",
            "in": "query",
            "name": "clip_id",
            "required": false,
            "schema": {
              "maxLength": 96,
              "type": "string"
            }
          },
          {
            "description": "Only clips on this lane ('backing' = the backing lane).",
            "in": "query",
            "name": "lane_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "target_kind",
            "required": false,
            "schema": {
              "enum": [
                "clip_gain",
                "plugin_parameter",
                "lane_volume",
                "lane_pan"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "plugin_instance_id",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "stable_param_id",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "true = stored envelopes only (drops the default gain curves).",
            "in": "query",
            "name": "persisted",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/AutomationEnvelope"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List automation envelopes",
        "tags": [
          "automation"
        ],
        "x-freestyle-mcp-equivalent": "list_automation",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/automation/{envelope_id}": {
      "delete": {
        "description": "If-Match (or expectedRevision) = the revision you read. A deleted clip-gain envelope falls back to the default curve; a deleted lane envelope hands the lane back to its saved fader / pan.",
        "operationId": "deleteAutomationEnvelope",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "envelope_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expectedRevision": {
                    "description": "The envelope revision you read (or send it as If-Match).",
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    },
                    "envelopeId": {
                      "type": "string"
                    },
                    "live": {
                      "$ref": "#/components/schemas/AutomationLiveReconcile"
                    },
                    "projectId": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Delete an automation envelope",
        "tags": [
          "automation"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "delete_automation",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      },
      "get": {
        "description": "ETag = the envelope revision (If-None-Match answers 304).",
        "operationId": "getAutomationEnvelope",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "envelope_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationEnvelopeResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get one automation envelope",
        "tags": [
          "automation"
        ],
        "x-freestyle-mcp-equivalent": "list_automation",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      },
      "put": {
        "description": "If-Match (or expectedRevision) = the revision you read; 412 revision_conflict (details.envelope = the current one) if it moved. Omitted fields keep their stored value; the target cannot change. startSec / durationSec move or resize a lane envelope's window (lane envelopes only; 422 on clip envelopes).",
        "operationId": "updateAutomationEnvelope",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "envelope_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "defaultValue": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "durationSec": {
                    "description": "Window length in seconds; points' timeSec must lie in 0..durationSec (endpoints are added when missing).",
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "number"
                  },
                  "expectedRevision": {
                    "description": "The envelope revision you read (or send it as If-Match).",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "points": {
                    "items": {
                      "$ref": "#/components/schemas/AutomationPoint"
                    },
                    "maxItems": 250000,
                    "type": "array"
                  },
                  "startSec": {
                    "default": 0,
                    "description": "Timeline second the envelope starts at.",
                    "maximum": 86400,
                    "minimum": 0,
                    "type": "number"
                  },
                  "target": {
                    "$ref": "#/components/schemas/AutomationTarget"
                  },
                  "valueType": {
                    "enum": [
                      "continuous",
                      "discrete",
                      "boolean"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationEnvelopeResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Replace an envelope's points / default / value type",
        "tags": [
          "automation"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "update_automation",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/automation/{envelope_id}/points": {
      "delete": {
        "description": "indices (positions as read) and/or a time range fromSec..toSec (inclusive). Endpoints at 0 and the clip duration are re-added at the curve's value. Without If-Match the write is pinned to the revision read in the same request, so a concurrent edit still answers 412 revision_conflict.",
        "operationId": "deleteAutomationPoints",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "envelope_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expectedRevision": {
                    "description": "The envelope revision you read (or send it as If-Match).",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "fromSec": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "indices": {
                    "items": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "type": "array"
                  },
                  "toSec": {
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationEnvelopeResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Remove points from an envelope",
        "tags": [
          "automation"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "update_automation",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      },
      "post": {
        "description": "Merges the points into the envelope (stable-sorted by time). A point at the same timeSec as an existing one forms a discontinuity pair with it (the new point is the value from that time on). Without If-Match the write is pinned to the revision read in the same request, so a concurrent edit still answers 412 revision_conflict.",
        "operationId": "addAutomationPoints",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "envelope_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expectedRevision": {
                    "description": "The envelope revision you read (or send it as If-Match).",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "points": {
                    "items": {
                      "$ref": "#/components/schemas/AutomationPoint"
                    },
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "points"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationEnvelopeResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Add points to an envelope",
        "tags": [
          "automation"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "update_automation",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/automation/{envelope_id}/points/{index}": {
      "patch": {
        "description": "index = the point's position in the envelope's points (as read). Fields not sent keep their value; meta: null removes the metadata. Without If-Match the write is pinned to the revision read in the same request, so a concurrent edit still answers 412 revision_conflict.",
        "operationId": "updateAutomationPoint",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "envelope_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "index",
            "required": true,
            "schema": {
              "maximum": 100000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "curve": {
                    "enum": [
                      "linear",
                      "bezier",
                      "hold",
                      "db"
                    ],
                    "type": "string"
                  },
                  "expectedRevision": {
                    "description": "The envelope revision you read (or send it as If-Match).",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "meta": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "tension": {
                    "maximum": 1,
                    "minimum": -1,
                    "type": "number"
                  },
                  "timeSec": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "value": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationEnvelopeResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Change one point",
        "tags": [
          "automation"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "update_automation",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses": {
      "get": {
        "description": "The project's persisted mixer buses (master included) with gain, mute/solo, order and plugin chain. The master bus's pluginChain is its saved INSERT CHAIN (bus_id 'master' on the bus-plugin routes: addBusPlugin, listBusPlugins, setBusPluginParameter, setBusPluginBypassed, moveBusPlugin, deleteBusPlugin and the bus editor routes): processed on the final mix (every lane, bus and the beat) before the master fader / pan, live and in exports, saved by the engine and restored on every session load. Its gain is the engine master output fader.",
        "operationId": "listBuses",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Bus"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List buses",
        "tags": [
          "buses"
        ],
        "x-freestyle-mcp-equivalent": "list_buses",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      },
      "post": {
        "description": "Create a persisted mixer bus (bus_id is caller-chosen, unique per project). When the project is open in a live engine session the bus channel is created there at once (liveEngine), so setLaneSend / setLaneRouting to it work immediately.",
        "operationId": "createBus",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bus_id": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "display_order": {
                    "maximum": 1024,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "gain": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number"
                  },
                  "muted": {
                    "type": "boolean"
                  },
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "plugin_chain": {
                    "items": {},
                    "maxItems": 32,
                    "type": "array"
                  },
                  "soloed": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "bus_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Create a bus",
        "tags": [
          "buses"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "create_bus",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}": {
      "delete": {
        "description": "Delete an unused bus. Refused (409) while a lane, pattern placement or pattern source is still routed to it, or while a lane still sends to it: re-route the lanes and delete the sends (deleteLaneSend) first. Sends kept by deleted lanes go with the bus, so a bus created later with the same id starts with no sends. An open engine session drops the bus channel at once (liveEngine). DELETE is the confirmation.",
        "operationId": "deleteBus",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "busId": {
                      "type": "string"
                    },
                    "deleted": {
                      "type": "boolean"
                    },
                    "liveEngine": {
                      "description": "Whether the project's OPEN engine session took the change at once (the bus channel is created / updated / removed live, exactly like the Studio's bus mixer), so a send or routing to a new bus works without engine:reload. No session is ever opened for this; reason no_live_session = nothing was open (the next session load builds the bus).",
                      "properties": {
                        "applied": {
                          "description": "true = the running engine session took the change (the next audio block hears it).",
                          "type": "boolean"
                        },
                        "reason": {
                          "description": "Why it was not applied live. The saved change still stands; the next session load plays it.",
                          "enum": [
                            "no_live_session",
                            "engine_rejected",
                            "engine_unreachable"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "applied"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Delete a bus",
        "tags": [
          "buses"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "delete_bus",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      },
      "patch": {
        "description": "Rename, set gain (0..4), mute/solo, reorder or replace the bus plugin chain. Name, gain, mute and solo are also applied to an open engine session at once (liveEngine); a replaced plugin_chain is heard after the next session load.",
        "operationId": "updateBus",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "display_order": {
                    "maximum": 1024,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "gain": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number"
                  },
                  "muted": {
                    "type": "boolean"
                  },
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "plugin_chain": {
                    "items": {},
                    "maxItems": 32,
                    "type": "array"
                  },
                  "soloed": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Update a bus",
        "tags": [
          "buses"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "update_bus",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/gain": {
      "put": {
        "description": "Linear gain on the live engine bus; saved with the project unless persist=false.",
        "operationId": "setBusGain",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "gain": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number"
                  },
                  "persist": {
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "gain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set a bus fader (live)",
        "tags": [
          "buses"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_gain)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/mute": {
      "put": {
        "description": "Mute or unmute the live engine bus.",
        "operationId": "setBusMute",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "muted": {
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "muted"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Mute / unmute a bus (live)",
        "tags": [
          "buses"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_muted)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/pan": {
      "put": {
        "description": "pan -1 (hard left) .. 0 (center) .. 1 (hard right) on the live engine bus output, after its fader: an equal-power balance (the near side untouched, the far side tapered; smoothed, so a sweep is click-free). Bumps the mix revision like every mix write. Live session state: not saved with the project (a reopened project starts centered). bus_id 'master' is the master output pan (same as setMasterPan).",
        "operationId": "setBusPan",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "pan": {
                    "maximum": 1,
                    "minimum": -1,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "pan"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Pan a bus (live)",
        "tags": [
          "buses"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_pan)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugin-state": {
      "get": {
        "description": "Persisted plugin snapshots on a bus chain (keys, types, positions, hashes). bus_id\n'master' lists the saved master insert chain (rows the engine writes).",
        "operationId": "getBusPluginState",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BusPluginState"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Saved plugin state of a bus",
        "tags": [
          "buses"
        ],
        "x-freestyle-mcp-equivalent": "get_bus_plugin_state",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      },
      "put": {
        "description": "Upsert the persisted state of one plugin (plugin_key) on a bus chain. On bus_id 'master' the engine owns the rows (addBusPlugin saves each insert under its instance id): only an existing plugin_key can be refined (its state fields merge); an unknown key is 404 not_found.",
        "operationId": "saveBusPluginState",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "chain_position": {
                    "maximum": 1024,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "plugin_key": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "state": {
                    "type": "object"
                  },
                  "state_hash": {
                    "maxLength": 128,
                    "type": "string"
                  }
                },
                "required": [
                  "plugin_key"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Save one bus plugin's state",
        "tags": [
          "buses"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "save_bus_plugin_state",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins": {
      "get": {
        "description": "The plug-ins loaded on one bus of the live session, in chain order: index, name, type_id (catalog id), instance_id, bypassed, format, hasEditor. bus_id 'master' is the master insert chain (processed on the final mix before the master fader, live and in exports); hasEditor is true for its hosted plug-ins (the bus editor routes open them). Other buses have no editor routes (hasEditor false). chainLatencySamples is the chain's reported latency; for master it is output latency the engine reports in /transport/clock producer_latency_seconds and compensates in exports. live is false when the open session has no channel for the bus. The saved chain is getBusPluginState. Host plug-in file paths are never returned.",
        "operationId": "listBusPlugins",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "busId": {
                      "type": "string"
                    },
                    "chainLatencySamples": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "live": {
                      "type": "boolean"
                    },
                    "masterEffectsSupported": {
                      "description": "The engine host runs the master insert chain.",
                      "type": "boolean"
                    },
                    "plugins": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "projectId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "projectId",
                    "busId",
                    "live",
                    "plugins"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List a bus's live plugin chain (master included)",
        "tags": [
          "plugins"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(list_buses)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:read"
      },
      "post": {
        "description": "Append (or, with position, insert) a hosted (vst3) effect, named by catalog id, to a bus chain through the Pro catalog's load_bus_plugin. bus_id 'master' is the MASTER INSERT CHAIN: it processes the final mix (every lane, bus and the beat), before the master fader / pan and the output limiter, live and in exports (/render/share); the engine saves it itself (persisted, restored on every session load, copied with the project). Native effects and instruments are not bus plug-ins. Host file paths are refused. LIMITATION: the engine has no add-by-catalog-id route for buses (lanes use /plugins/chain/add), so a bus load names the catalog's bundle on the host: the plug-in must be installed at its catalog location on the project's engine host. When the host reports it missing (or the catalog has no bundle for it) the answer is 409 plugin_not_installed_on_host; host paths are never echoed. Undo of a delete: send the delete's removed.restore.addBusPlugin body (state + state_signature, bypassed, position, instance_id). Remove one with deleteBusPlugin; list the live chain with listBusPlugins.",
        "operationId": "addBusPlugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bypassed": {
                    "description": "Create it bypassed.",
                    "type": "boolean"
                  },
                  "instance_id": {
                    "description": "Re-use this instance id (undo of a delete). Minted when omitted.",
                    "maxLength": 64,
                    "pattern": "^[A-Za-z0-9_-]{8,64}$",
                    "type": "string"
                  },
                  "plugin_id": {
                    "description": "A catalog id from GET /plugins/catalog. Host file paths are refused.",
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "position": {
                    "description": "0-based slot to insert at; omitted or past the end = append.",
                    "maximum": 64,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "state": {
                    "description": "Opaque saved state (base64) from a bus delete's removed.restore.state; accepted only with its state_signature.",
                    "maxLength": 4194304,
                    "type": "string"
                  },
                  "state_signature": {
                    "description": "removed.restore.stateSignature from that delete.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "plugin_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EngineActionResult"
                        },
                        {
                          "properties": {
                            "instanceId": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "parametersRestored": {
                              "description": "Host parameters re-applied after the state chunk (the parameters a delete captured that the plug-in's chunk did not bring back); null when no parameters were sent.",
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "plugin": {
                              "$ref": "#/components/schemas/CatalogPlugin"
                            },
                            "pluginIndex": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "restoredState": {
                              "description": "true when the plug-in was created from the supplied state (undo of a delete), false when it starts from its template / preset.",
                              "type": "boolean"
                            },
                            "saved": {
                              "properties": {
                                "persisted": {
                                  "description": "The lane's saved chain (get_project lanes[].pluginChain, what a reload restores) holds the instance.",
                                  "type": "boolean"
                                },
                                "position": {
                                  "description": "Its saved chain_position (= live slot).",
                                  "type": [
                                    "integer",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "persisted"
                              ],
                              "type": "object"
                            }
                          },
                          "type": "object"
                        }
                      ]
                    },
                    {
                      "properties": {
                        "busId": {
                          "type": "string"
                        },
                        "persisted": {
                          "description": "Master bus: the engine saved the insert in the master chain (bus_plugin_state, restored on every session load). null for other buses, whose saved chain is written with saveBusPluginState.",
                          "type": [
                            "boolean",
                            "null"
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "413": {
            "description": "payload_too_large: state is larger than 4 MiB."
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Add a catalog plug-in to a bus (master included)",
        "tags": [
          "plugin_catalog"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(load_bus_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}": {
      "delete": {
        "description": "Remove one plugin slot from a bus chain (DELETE is the confirmation). removed is what was taken out, read from the running plug-in just before the delete (instance id, type, bypass, slot, saved chunk with its signature); undo is the addBusPlugin request that puts it back with the same settings in the same slot. bus_id 'master' addresses the master insert chain (the engine saves the change; parameter and state edits are captured ~1.5 s after the last edit). 409 master_effects_not_supported (details.reason engine_outdated) when the project's engine predates master effects.",
        "operationId": "deleteBusPlugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/EngineActionResult"
                    },
                    {
                      "properties": {
                        "busId": {
                          "type": "string"
                        },
                        "persisted": {
                          "description": "Master: the saved master chain no longer holds it.",
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "removed": {
                          "description": "What was removed (null on engines that do not report it).",
                          "oneOf": [
                            {
                              "$ref": "#/components/schemas/BusPluginRestoreState"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "undo": {
                          "description": "The request that puts the plug-in back (same slot, instance id, bypass and settings), or null.",
                          "oneOf": [
                            {
                              "properties": {
                                "body": {
                                  "type": "object"
                                },
                                "method": {
                                  "enum": [
                                    "POST"
                                  ],
                                  "type": "string"
                                },
                                "path": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "method",
                                "path",
                                "body"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Remove a bus plugin",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "execute_pro_action(delete_bus_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/bypass": {
      "put": {
        "description": "Bypass or re-enable one bus plugin slot. bus_id 'master' addresses the master insert chain (the engine saves the change; parameter and state edits are captured ~1.5 s after the last edit). 409 master_effects_not_supported (details.reason engine_outdated) when the project's engine predates master effects.",
        "operationId": "setBusPluginBypassed",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bypassed": {
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "bypassed"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Bypass / re-enable a bus plugin",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_plugin_bypassed)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor": {
      "get": {
        "description": "Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of getPluginEditorStatus, addressed by bus slot instead of lane. Whether the slot's editor window is open/mirrored on the engine host.\n\n``editor_status.editor_target`` names what the mirror captures and feeds:\ninstance_id, window_id, editor_id, editor_bound_to_instance (the editor's\nprocessor IS the slot's instance), owner_matches, window/occlusion state,\nlast_revision and last_frame_stale.",
        "operationId": "getBusPluginEditorStatus",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "editor_not_available: the bus is not 'master' (reason bus_editor_not_supported), or the master slot holds a built-in processor with no editor. master_effects_not_supported: the engine predates master effects. Lane editor codes otherwise (editor_not_available: the slot holds a native effect (format native / native-* type), which has no editor window. Final (not retryable); answered without an engine call.)."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Plugin editor window status (master bus)",
        "tags": [
          "plugins"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/frame": {
      "get": {
        "description": "Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of getPluginEditorFrame, addressed by bus slot instead of lane. The open editor window's current pixels as image/jpeg, for mirroring a native plug-in GUI (open it first with openPluginEditor). Poll it: pass the last X-Editor-Revision as if_revision (or If-None-Match) and an unchanged frame is 304 with no body; wait_ms (<= 500) holds the request until the frame changes: the engine captures right after each input event reaches the editor (sendPluginEditorPointer, sendPluginEditorScroll, sendPluginEditorKeys), so a client that re-requests as soon as a frame arrives gets one per input step, and the settled frame within ~50 ms of the last event. For frames pushed without HTTP round trips, subscribe on the monitoring WebRTC peer instead (Realtime: live plug-in editor frames). max_width scales the frame down (64-1280, default 640; JPEG quality 0.7). The revision hashes every pixel of the slot's own editor window (redrawn before each capture); if the plug-in's parameters moved but its pixels did not, X-Editor-Frame-Stale is 1 and the revision still changes. Response headers: ETag / X-Editor-Revision, X-Editor-Width, X-Editor-Height, X-Editor-Plugin-Instance-Id, X-Editor-Plugin-Type, X-Editor-Window-Id, X-Editor-Bound-To-Instance, X-Editor-Capture-Source, X-Editor-Frame-Stale. expected_plugin_instance_id refuses a frame of another instance (409 plugin_instance_mismatch). The bytes are proxied by the API (no direct Mozart URL is issued). Metered by the editor rate class, separate from the interactive bucket. 409 editor_not_open when no editor window is open; 409 target_not_loaded when the lane is not in the live session.",
        "operationId": "getBusPluginEditorFrame",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Scale the frame to at most this width.",
            "in": "query",
            "name": "max_width",
            "required": false,
            "schema": {
              "default": 640,
              "maximum": 1280,
              "minimum": 64,
              "type": "integer"
            }
          },
          {
            "description": "With if_revision: wait up to this long for a changed frame.",
            "in": "query",
            "name": "wait_ms",
            "required": false,
            "schema": {
              "default": 0,
              "maximum": 500,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "X-Editor-Revision of the frame you hold.",
            "in": "query",
            "name": "if_revision",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Refuse (409 plugin_instance_mismatch) if the slot's editor belongs to another instance.",
            "in": "query",
            "name": "expected_plugin_instance_id",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/jpeg": {
                "schema": {
                  "contentMediaType": "image/jpeg",
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "304": {
            "description": "Unchanged since if_revision / If-None-Match (no body)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "editor_not_available: the bus is not 'master' (reason bus_editor_not_supported), or the master slot holds a built-in processor with no editor. master_effects_not_supported: the engine predates master effects. Lane editor codes otherwise (editor_not_open, target_not_loaded, plugin_instance_mismatch or editor_not_available (a native effect: no editor window; final, no engine call).)."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Current master-bus plugin editor frame (JPEG)",
        "tags": [
          "plugins"
        ],
        "x-freestyle-rate": "editor",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/pointer": {
      "post": {
        "description": "Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of sendPluginEditorPointer, addressed by bus slot instead of lane. One pointer phase (down / move / up) at normalized editor coordinates (0..1 of the frame's width/height). Send a gesture as down, moves, up with one gesture_id so knobs, sliders and drags keep their gesture. Coalesce moves client-side (<= ~20/s); a missed up leaves the gesture held, so always send it. down / move answer delivery=dispatched once the event reached a hit-testable editor view; up is confirmed by effect (a parameter or the editor's pixels changed since down), else ok is false with code input_unconfirmed. ok is also false for not_hit_testable / no_editor_view. Never retried by the server. Metered by the editor rate class. 409 editor_not_open when no editor window is open. For Studio latency (no HTTP round trip per event), send the same fields as editor.pointer on the monitoring peer's mozart-editor data channel instead (sendMonitorOffer peerGrant=write; /docs/realtime.html#fast-input).",
        "operationId": "sendBusPluginEditorPointer",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "alt_key": {
                    "type": "boolean"
                  },
                  "button": {
                    "maximum": 4,
                    "minimum": -1,
                    "type": "integer"
                  },
                  "buttons": {
                    "maximum": 31,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "ctrl_key": {
                    "type": "boolean"
                  },
                  "gesture_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "meta_key": {
                    "type": "boolean"
                  },
                  "phase": {
                    "enum": [
                      "down",
                      "move",
                      "up"
                    ],
                    "type": "string"
                  },
                  "pressure": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "shift_key": {
                    "type": "boolean"
                  },
                  "x_norm": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "y_norm": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "required": [
                  "phase",
                  "x_norm",
                  "y_norm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginEditorInputResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Send a pointer event to a master-bus plugin editor",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "editor",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/scroll": {
      "post": {
        "description": "Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of sendPluginEditorScroll, addressed by bus slot instead of lane. A wheel event at normalized editor coordinates. delta_x / delta_y follow DOM WheelEvent units (delta_mode 0 pixels, 1 lines, 2 pages); positive delta_y scrolls down. Confirmed by effect like pointer up (ok false, code input_unconfirmed, when nothing changed). Metered by the editor rate class. 409 editor_not_open when no editor window is open.",
        "operationId": "sendBusPluginEditorScroll",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "alt_key": {
                    "type": "boolean"
                  },
                  "ctrl_key": {
                    "type": "boolean"
                  },
                  "delta_mode": {
                    "default": 0,
                    "enum": [
                      0,
                      1,
                      2
                    ],
                    "type": "integer"
                  },
                  "delta_x": {
                    "default": 0,
                    "maximum": 10000,
                    "minimum": -10000,
                    "type": "number"
                  },
                  "delta_y": {
                    "maximum": 10000,
                    "minimum": -10000,
                    "type": "number"
                  },
                  "meta_key": {
                    "type": "boolean"
                  },
                  "shift_key": {
                    "type": "boolean"
                  },
                  "x_norm": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "y_norm": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "required": [
                  "x_norm",
                  "y_norm",
                  "delta_y"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginEditorInputResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Send a scroll (wheel) event to a master-bus plugin editor",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "editor",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/type": {
      "post": {
        "description": "Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of sendPluginEditorKeys, addressed by bus slot instead of lane. Type text (up to 256 characters, e.g. into a focused value field) or send one key by keycode (JUCE/ASCII key code: 13 Return, 27 Escape, 8 Backspace, 9 Tab, 127 Delete, printable ASCII, JUCE arrow/Home/End/PageUp/PageDown codes), with optional modifiers. Send text OR keycode. Keys go to the editor's focused control: click the value field first. The result is confirmed by effect (a parameter or the editor's pixels changed); otherwise ok is false with code input_unconfirmed. Metered by the editor rate class. 409 editor_not_open when no editor window is open.",
        "operationId": "sendBusPluginEditorKeys",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "alt_key": {
                    "type": "boolean"
                  },
                  "ctrl_key": {
                    "type": "boolean"
                  },
                  "keycode": {
                    "maximum": 65535,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "meta_key": {
                    "type": "boolean"
                  },
                  "shift_key": {
                    "type": "boolean"
                  },
                  "text": {
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginEditorInputResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Type text or a key into a master-bus plugin editor",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "editor",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor:close": {
      "post": {
        "description": "Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of closePluginEditor, addressed by bus slot instead of lane. Close the slot's editor window.",
        "operationId": "closeBusPluginEditor",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Close a master-bus plugin editor window",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor:open": {
      "post": {
        "description": "Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of openPluginEditor, addressed by bus slot instead of lane. Open the slot's editor window on the engine host and start mirroring it. plugin_index is the listLanePlugins index (on an instrument lane, 0 is the instrument).",
        "operationId": "openBusPluginEditor",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Open (mirror) a master-bus plugin editor window",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor:release": {
      "post": {
        "description": "Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of releasePluginEditor, addressed by bus slot instead of lane. Release this caller's hold on the slot's editor window.",
        "operationId": "releaseBusPluginEditor",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Release a master-bus plugin editor window",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/mix": {
      "put": {
        "description": "FL's slot Mix knob for a bus insert: 0..1, default 1 (bit-identical). Saved with the project unless persist=false. 409 engine_update_required on an engine without per-slot mix.",
        "operationId": "setBusPluginMix",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "mix": {
                    "description": "Wet/dry mix of the slot: 0 = dry (slot input), 1 = fully wet (default).",
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "persist": {
                    "default": true,
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "mix"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set a bus plugin slot's wet/dry mix",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_plugin_mix)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/parameters": {
      "get": {
        "description": "The bus counterpart of listLanePluginParameters (normalized 0..1 values, the unit setBusPluginParameter takes). Paginated; the slot summary is in plugin.",
        "operationId": "listBusPluginParameters",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "busId": {
                      "type": "string"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/PluginParameter"
                      },
                      "type": "array"
                    },
                    "eq": {
                      "$ref": "#/components/schemas/NativeEq"
                    },
                    "laneId": {
                      "type": "string"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    "plugin": {
                      "properties": {
                        "currentProgram": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "format": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "index": {
                          "type": "integer"
                        },
                        "instanceId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": "string"
                        },
                        "parameterCount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "programCount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "stateHash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "typeId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    "projectId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Discover a bus plug-in's parameters",
        "tags": [
          "plugin_catalog"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_bus_plugin_live_state)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/parameters/{parameter_index}": {
      "put": {
        "description": "Normalized (0..1) parameter of one bus plugin slot; the engine write carries the slot's expected plugin type (wrong-slot guard). bus_id 'master' addresses the master insert chain (the engine saves the change; parameter and state edits are captured ~1.5 s after the last edit). 409 master_effects_not_supported (details.reason engine_outdated) when the project's engine predates master effects.",
        "operationId": "setBusPluginParameter",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "in": "path",
            "name": "parameter_index",
            "required": true,
            "schema": {
              "maximum": 100000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "value_norm": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "required": [
                  "value_norm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set a bus plugin parameter",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_plugin_parameter)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}:move": {
      "post": {
        "description": "Move one bus plugin slot to to_index; the plug-ins in between shift by one. bus_id 'master' addresses the master insert chain (the engine saves the change; parameter and state edits are captured ~1.5 s after the last edit). 409 master_effects_not_supported (details.reason engine_outdated) when the project's engine predates master effects.",
        "operationId": "moveBusPlugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "to_index": {
                    "maximum": 64,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "to_index"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Reorder a bus plugin",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(move_bus_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/solo": {
      "put": {
        "description": "Solo or unsolo the live engine bus.",
        "operationId": "setBusSolo",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "soloed": {
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "soloed"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Solo / unsolo a bus (live)",
        "tags": [
          "buses"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_soloed)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/buses/{bus_id}/stereo": {
      "put": {
        "description": "Stereo separation (-1..1), phase invert and swap L/R for one bus. Send at least one field; only the fields sent change. Applied after the bus insert chain, before its fader, click-free; neutral is bit-identical. Saved with the project unless persist=false. Not available on the master output. 409 engine_update_required on an engine that predates stereo tools.",
        "operationId": "setBusStereo",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "persist": {
                    "type": "boolean"
                  },
                  "polarity_inverted": {
                    "description": "Phase invert (both channels).",
                    "type": "boolean"
                  },
                  "separation": {
                    "description": "Stereo separation, -1 (mono) .. 0 (neutral) .. +1 (side doubled); FL shows -100..+100 %. Applied after the insert chain, before the fader.",
                    "maximum": 1,
                    "minimum": -1,
                    "type": "number"
                  },
                  "swap_lr": {
                    "description": "Swap the left and right channels.",
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set a bus's stereo tools (live)",
        "tags": [
          "buses"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_stereo)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips": {
      "get": {
        "description": "Live (not deleted) audio clips ordered by start time. ETag = timeline revision.",
        "operationId": "listClips",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Only clips on this lane.",
            "in": "query",
            "name": "lane_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Clip"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List clips",
        "tags": [
          "clips"
        ],
        "x-freestyle-mcp-equivalent": "get_project (clips)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "projects:read"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/automation": {
      "get": {
        "description": "Envelopes of one clip ('pattern:<id>' for a pattern placement, 'backing:<id>' for the backing), including its default gain curve.",
        "operationId": "listClipAutomation",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "target_kind",
            "required": false,
            "schema": {
              "enum": [
                "clip_gain",
                "plugin_parameter",
                "lane_volume",
                "lane_pan"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "plugin_instance_id",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "stable_param_id",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "true = stored envelopes only (drops the default gain curves).",
            "in": "query",
            "name": "persisted",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/AutomationEnvelope"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List a clip's automation envelopes",
        "tags": [
          "automation"
        ],
        "x-freestyle-mcp-equivalent": "list_automation(clip_ids=[clip_id])",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      },
      "post": {
        "description": "target {kind:'clip_gain'} (default) or {kind:'plugin_parameter', pluginInstanceId, stableParamId, name} (the instance must be on the clip's lane). Points within the clip; endpoints at 0 and the clip duration are added when missing. 409 automation_exists when the clip already has an envelope for that target (details.envelope).",
        "operationId": "createAutomationEnvelope",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "defaultValue": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "points": {
                    "items": {
                      "$ref": "#/components/schemas/AutomationPoint"
                    },
                    "maxItems": 250000,
                    "type": "array"
                  },
                  "target": {
                    "$ref": "#/components/schemas/AutomationTarget"
                  },
                  "valueType": {
                    "enum": [
                      "continuous",
                      "discrete",
                      "boolean"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationEnvelopeResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Create an automation envelope",
        "tags": [
          "automation"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "create_automation",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/fades": {
      "put": {
        "description": "FL-style audio clip fades: fade_in / fade_out = {duration_sec >= 0, curve} with curve linear | equal_power | exp | log | s_curve (default linear). Send at least one side; a side that is absent is left alone, null or duration_sec 0 clears it. Non-destructive: a gain ramp anchored to the clip's own edges (trimming does not change it), multiplied with the clip gain and envelope, in live playback and in exports. A length longer than the clip is 400. Persists project_tracks.fade_in_sec/_curve and fade_out_sec/_curve (the clip card's fadeIn / fadeOut; /session/load restores them), bumps the timeline revision, then applies them to an already-running engine session: engine_applied=false / engine_reload_required=true means saved but not taken live (no session, or the clip is not loaded); it plays after a reload. No session is ever opened for this. Idempotent: the stored values are a no-op (changed=false, same revision). If-Match = timeline revision (412 timeline_revision_conflict). Backing and pattern clips are 404. Returns the clip card, the new timeline revision (ETag) and undo {op: fades, clip_id, fade_in, fade_out}: PUT those sides back to undo.",
        "operationId": "setClipFades",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "fade_in": {
                    "additionalProperties": false,
                    "description": "{duration_sec >= 0, curve?}; null or duration_sec 0 clears this side.",
                    "properties": {
                      "curve": {
                        "default": "linear",
                        "enum": [
                          "linear",
                          "equal_power",
                          "exp",
                          "log",
                          "s_curve"
                        ],
                        "type": "string"
                      },
                      "duration_sec": {
                        "minimum": 0,
                        "type": "number",
                        "x-unit": "seconds"
                      }
                    },
                    "required": [
                      "duration_sec"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "fade_out": {
                    "additionalProperties": false,
                    "description": "{duration_sec >= 0, curve?}; null or duration_sec 0 clears this side.",
                    "properties": {
                      "curve": {
                        "default": "linear",
                        "enum": [
                          "linear",
                          "equal_power",
                          "exp",
                          "log",
                          "s_curve"
                        ],
                        "type": "string"
                      },
                      "duration_sec": {
                        "minimum": 0,
                        "type": "number",
                        "x-unit": "seconds"
                      }
                    },
                    "required": [
                      "duration_sec"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipFadesResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set one clip's fade-in and fade-out",
        "tags": [
          "clips"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_clip_fades)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/gain": {
      "put": {
        "description": "Clip gain (Logic / Ableton / Pro Tools): a linear level 0..4 (1 = unity, 4 = +12 dB, 0 = silent) for THIS clip only, before the lane's insert chain and fader. Persists project_tracks.volume (the clip card's `volume`; /session/load restores it), bumps the timeline revision, then applies it to an already-running engine session (set_clip_gain): engine_applied=false / engine_reload_required=true means it is saved but the live session did not take it (no session open, or the clip is not loaded) and plays it after a reload. No session is ever opened for this. Idempotent: the stored gain is a no-op (changed=false, same revision). If-Match = timeline revision (412 timeline_revision_conflict). Backing and pattern clips are 404. Returns the clip card, the new timeline revision (ETag) and undo {op: gain, clip_id, gain}: PUT its gain back to undo. engine_set_clip_gain / execute_pro_action(set_clip_gain) persist the same column.",
        "operationId": "setClipGain",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "gain": {
                    "description": "Linear clip gain, 1 = unity.",
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "gain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipGainResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set one clip's gain",
        "tags": [
          "clips"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_clip_gain)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/mute": {
      "put": {
        "description": "FL Studio-style clip mute: muted=true silences THIS clip only; the rest of its lane keeps playing. Independent of lane mute/solo (the clip card's `muted` is the lane mirror, `clipMuted` this clip's own mute; either silences it). Persists project_tracks.clip_muted, then applies it to the live engine (set_clip_muted): engine_applied=false / engine_reload_required=true means it is saved but the live session did not take it (not loaded, or an older engine) and plays it after a reload. Idempotent: the current state is a no-op (changed=false, same revision). If-Match = timeline revision (412 timeline_revision_conflict). Backing and pattern clips are 404. Returns the clip card, the new timeline revision (ETag) and undo {op: mute, clip_id, muted}: PUT its muted back to undo.",
        "operationId": "setClipMuted",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "muted": {
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "muted"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipMuteResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Mute or unmute one clip",
        "tags": [
          "clips"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_clip_muted)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/plugin-chain-state": {
      "put": {
        "description": "Persist which chain modules are enabled / added (module name -> true/false) and the vocal gain (0..4) for one take, exactly like the Studio's chain toggles.",
        "operationId": "saveClipPluginChainState",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "plugin_chain_added": {
                    "additionalProperties": {
                      "type": "boolean"
                    },
                    "type": "object"
                  },
                  "plugin_chain_enabled": {
                    "additionalProperties": {
                      "type": "boolean"
                    },
                    "type": "object"
                  },
                  "vocal_gain": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "saved": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "trackId": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Save a take's chain on/off + added modules",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "save_track_chain_state",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/plugin-state": {
      "get": {
        "description": "Persisted plugin snapshots stored on one take (clip).",
        "operationId": "getSavedClipPluginState",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginSavedState"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Saved plugin snapshots of a take",
        "tags": [
          "plugins"
        ],
        "x-freestyle-mcp-equivalent": "get_saved_plugin_state(track_id)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/region-effects:apply": {
      "post": {
        "description": "Replace exactly the selected region with a NEW processed asset in one atomic clip batch (the original audio is never modified). mode=\"split\" (default) splits the clip at the selection and fills the gap with a processed clip. mode=\"in_place\" (alias split=false, Audacity's behaviour) keeps ONE clip: its whole source (up to 240 s, else 413 source_too_long_for_in_place) is re-rendered with the selection processed into a new source version of the SAME clip (same clip id, start, duration and source offset), bound like a pencil sample edit; the result has revision/previous_revision and undo is POST sample-edits:undo with If-Match = revision (undo.path). The apply is done only once the live engine plays the new version (engine_status 'swapped'; get_clip_waveform then reports revision); if the engine cannot load it the job fails with engine_swap_failed, engine_status = the engine's code and NOTHING committed (rolled_back=true; the clip keeps its previous audio and revision; retry with the same key). A tempo-stretched clip is 409 in_place_unsupported_source. Selection: start_ms/end_ms (timeline ms) OR start_frame/end_frame (+ sample_rate), not both; a range past the clip is clamped to it. crossfade_ms (0-100) blends original -> processed inside the selection. Regions over 120 s are refused (region_too_long). The clip must be loaded in the live session. Runs as a job: waits up to wait_sec (default 20, max 50); 200 with status 'done' and the result, or 202 with status 'queued'/'running', job_id and a Location to poll. The Idempotency-Key header doubles as the apply's idempotency_key (a committed apply answers replay; after undoing, apply again with a NEW key or get idempotency_key_used). Undo (split): POST undo.inverse_ops to clips:batch. If-Match takes the timeline revision (412 timeline_revision_conflict); a clip that changed mid-apply is 412 conflict. A result peaking ABOVE 0 dBFS (by more than 0.0001 dB) is refused (409 would_clip) unless allow_clipping=true; a peak of exactly 0 dBFS is allowed (it is stored unclipped). dry_run=true plans only. Live-engine failures keep a specific code: 503 engine_session_contended (another project of this account took the account's live engine; retry after Retry-After), engine_session_not_found, engine_restarting; otherwise the engine's own code, with details.engineReason when it gave one. Charged to the Mozart AI burst guard, like MCP.",
        "operationId": "applyRegionEffect",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "allow_clipping": {
                    "default": false,
                    "type": "boolean"
                  },
                  "crossfade_ms": {
                    "default": 0,
                    "maximum": 100,
                    "minimum": 0,
                    "type": "number"
                  },
                  "dry_run": {
                    "default": false,
                    "type": "boolean"
                  },
                  "effect": {
                    "description": "An effect id from the catalog.",
                    "maxLength": 32,
                    "type": "string"
                  },
                  "end_frame": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "end_ms": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "idempotency_key": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "mode": {
                    "default": "split",
                    "description": "split = split the clip and fill the gap (default); in_place = keep one clip and write a new source version of it.",
                    "enum": [
                      "split",
                      "in_place"
                    ],
                    "type": "string"
                  },
                  "params": {
                    "description": "Typed parameters from the catalog; omitted ones take their defaults.",
                    "type": "object"
                  },
                  "sample_rate": {
                    "maximum": 384000,
                    "minimum": 8000,
                    "type": "number"
                  },
                  "split": {
                    "description": "false = mode \"in_place\".",
                    "type": "boolean"
                  },
                  "start_frame": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "start_ms": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "wait_sec": {
                    "default": 20,
                    "maximum": 50,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "required": [
                  "effect"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegionEffectJob"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegionEffectJob"
                }
              }
            },
            "description": "The job is still running (status queued|running, job_id); poll the Location header."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Apply an effect to a region",
        "tags": [
          "region_effects"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "apply_effect_to_region",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/region-effects:preview": {
      "post": {
        "description": "Render an effect over a selected region WITHOUT changing the project: a one-hour playback URL plus measured levels of the original and processed selection. Selection: start_ms/end_ms (timeline ms) OR start_frame/end_frame (+ sample_rate), not both; a range past the clip is clamped to it. crossfade_ms (0-100) blends original -> processed inside the selection. Regions over 120 s are refused (region_too_long). The clip must be loaded in the live session. context_ms (0-2000) adds untouched audio around the playback; at most the first 30 s render (preview.truncated). Read scope; viewers may preview.",
        "operationId": "previewRegionEffect",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "context_ms": {
                    "default": 0,
                    "maximum": 2000,
                    "minimum": 0,
                    "type": "number"
                  },
                  "crossfade_ms": {
                    "default": 0,
                    "maximum": 100,
                    "minimum": 0,
                    "type": "number"
                  },
                  "effect": {
                    "description": "An effect id from the catalog.",
                    "maxLength": 32,
                    "type": "string"
                  },
                  "end_frame": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "end_ms": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "params": {
                    "description": "Typed parameters from the catalog; omitted ones take their defaults.",
                    "type": "object"
                  },
                  "sample_rate": {
                    "maximum": 384000,
                    "minimum": 8000,
                    "type": "number"
                  },
                  "start_frame": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "start_ms": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "effect"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Preview an effect on a region",
        "tags": [
          "region_effects"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "preview_region_effect",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/sample-edits": {
      "post": {
        "description": "Overwrite individual source sample values of ONE clip. edits: up to 64 ranges {channel, start_frame, values[]} in SOURCE frames (the frames GET waveform indexes); values are raw PCM in [-1, 1], pre clip-gain and effects; at most 1 s of frames per call; ranges on one channel must not overlap. If-Match (required) = the waveform revision you drew on: if the source changed, nothing is applied (412 revision_conflict with details.current_revision). Idempotency-Key (required, 16-128 chars) makes a retry return the same result. Copy-on-write: a new lossless source version is stored and only this clip switches to it. Response ETag = the new revision; undo with POST sample-edits:undo and If-Match = that revision. Encrypted sources (ordinary uploads stored envelope-encrypted) are supported: the new version is stored encrypted like its source (encrypted_at_rest). Refusals keep their MCP codes: source_encrypted_unsupported (409, the encrypted version cannot be stored right now), source_not_durable, edit_in_progress.",
        "operationId": "editClipSamples",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "edits": {
                    "items": {
                      "$ref": "#/components/schemas/SampleEditRange"
                    },
                    "maxItems": 64,
                    "minItems": 1,
                    "type": "array"
                  },
                  "expected_revision": {
                    "description": "Alternative to If-Match.",
                    "pattern": "^[a-f0-9]{16}$",
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "edits"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SampleEditResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Edit clip samples (pencil)",
        "tags": [
          "sample_edits"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "edit_clip_samples",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/sample-edits:undo": {
      "post": {
        "description": "Restore the clip's previous source version (one step; up to 8 kept). If-Match (required) = the clip's current revision (the ETag the edit returned); a changed source is 412 revision_conflict, source_changed or nothing_to_undo (409). Idempotency-Key is required. Response ETag = the restored revision.",
        "operationId": "undoClipSampleEdit",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_revision": {
                    "description": "Alternative to If-Match.",
                    "pattern": "^[a-f0-9]{16}$",
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SampleEditUndoResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Undo the last sample edit",
        "tags": [
          "sample_edits"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "undo_clip_sample_edit",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/stems": {
      "post": {
        "description": "Separate one audio clip (clip_id = its id; 'backing' = the project's backing slot) into stems on the GPU -- the Studio clip menu's Extract stems, deterministic. mode: vocals (vocals + instrumental), four_stems (vocals, drums, bass, other), instruments (vocals, drums, bass, guitar, piano, other), drums (kit pieces kick, snare, toms, hh, ride, crash; on audio that is not already a drum stem it runs as drums_full and also returns vocals, bass, other). Each stem lands as a new lane aligned to the source clip (same start, trim, gain, loop repeats). replace=true (default) mutes the source when the stems land, so the mix sounds the same; replace=false lands the stem lanes muted. Answers 202 with a job (jobId, Location = getStemJob). A backing that was split before answers at once with the finished job (status done, cached=true): 201 when it created the stem lanes, 200 with deduplicated=true when the project still has every stem lane of an earlier split of that backing (nothing new is created; once one of those lanes was deleted, a repeat creates the stem lanes again). One split runs per project at a time (409 while one is processing). Send an Idempotency-Key: a retry never starts a second split. Metered like the Studio: the per-user stem.5min / stem.hour / stem.day buckets (refunded when no GPU job was queued) plus the project track limit (429 project_track_limit). 503 stem_extraction_disabled where no separator runs.",
        "operationId": "splitClipStems",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "mode": {
                    "enum": [
                      "vocals",
                      "four_stems",
                      "instruments",
                      "drums"
                    ],
                    "type": "string"
                  },
                  "replace": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": [
                  "mode"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StemJob"
                }
              }
            },
            "description": "Cached backing split the project still has in full (deduplicated=true): the earlier job, nothing created."
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StemJob"
                }
              }
            },
            "description": "Cached backing split: the stem lanes were created at once (status done)."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StemJob"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Split a clip into stems",
        "tags": [
          "stems"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "extract_stems",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/take": {
      "put": {
        "description": "FL Studio Clip menu > Takes > pick one: unmutes this take and mutes every other take of its stack, atomically (one transaction, one undo step), then mirrors the changed clips into the live engine. Idempotent: the current choice is a no-op (changed=false, same revision). A clip that is not a take is 409 not_a_take. If-Match = timeline revision (412 timeline_revision_conflict). undo.clip_id is the previously audible take: PUT it to undo.",
        "operationId": "setActiveTake",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TakeStackResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Choose the audible take of a stack",
        "tags": [
          "clips"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_clip_muted) per take",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips/{clip_id}/waveform": {
      "get": {
        "description": "Per-channel min/max/RMS buckets of the clip's source audio over a source-frame range, from the PCM the live engine holds (raw PCM in [-1,1], pre clip-gain/effects). ETag = the source revision (the sample-edit expected_revision); If-None-Match -> 304. clip_id may be 'backing'. Cold session: when the clip is not loaded the backend opens the session headless (or, for editors, attaches the saved clip to the running session) and retries once; the answer then carries session_recovered = session_load | clip_attach. The peaks always come from the engine's decode, so the revision is the same one pencil edits check. 409 target_not_loaded only when that recovery failed. Frames index the whole source file, so one set of peaks serves every clip cut from it: to draw a timeline that zooms without re-fetching, read each source once (clips with the same audioSourceId on their card share one) and keep the peaks on the client. The recipe is in /docs/waveforms.html.",
        "operationId": "getClipWaveform",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "First source frame of the range (default 0).",
            "in": "query",
            "name": "start_frame",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the range, exclusive, greater than start_frame (default: the end of the source). Clamped to frame_count.",
            "in": "query",
            "name": "end_frame",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Buckets to return. Bucket b covers frames [start + floor(b*span/n), start + floor((b+1)*span/n)); a range with fewer frames than buckets returns one frame per bucket.",
            "in": "query",
            "name": "buckets",
            "required": false,
            "schema": {
              "default": 1024,
              "maximum": 8192,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipWaveform"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get a clip waveform",
        "tags": [
          "clips"
        ],
        "x-freestyle-mcp-equivalent": "get_clip_waveform",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/clips/{clip_id}:attachToSession": {
      "post": {
        "description": "Load one already-saved clip (the clipId from uploadAudio / addAudioFromUrl / getProject) into the running Mozart session, exactly as session load does (no re-upload). 409 when it is already loaded.",
        "operationId": "attachClipToSession",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Attach a stored clip to the live session",
        "tags": [
          "media"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(attach_clip_to_session)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips/{clip_id}:move-to-lane": {
      "post": {
        "description": "Cross-lane move (e.g. cross-track paste): the clip keeps its audio window and moves to lane_id (an audio lane of the same project; backing / pattern / instrument lanes are refused with 400 lane_not_audio, another project's lane is 404), optionally to start_ms. DB-first in the engine (move_clip_to_lane): engine_reload_required=true means the move is saved but the live session must reload to play it. Guards: If-Match = timeline revision (412 timeline_revision_conflict) and/or expected {lane_id, start_ms} (409 clip_changed when the clip moved meanwhile). Returns the clip card, the new timeline revision (ETag) and undo {op: move, clip_id, lane_id, start_ms}: POST it back to this endpoint to undo.",
        "operationId": "moveClipToLane",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clip_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected": {
                    "properties": {
                      "lane_id": {
                        "type": "string"
                      },
                      "start_ms": {
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  "lane_id": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "start_ms": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "lane_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipMoveResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Move a clip to another lane",
        "tags": [
          "clips"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(move_clip_to_lane)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/clips:batch": {
      "post": {
        "description": "Up to 256 ops (update/insert/remove/restore) in ONE transaction, mirrored in the live engine. update may omit timing fields (filled from the clip's stored timing); insert/restore need start_ms, duration_sec and audio_offset_sec. An op's `expected` must match or nothing is applied (409 conflict). A malformed op is 400 invalid_op with details.opIndex. If-Match takes the timeline revision (412 timeline_revision_conflict). The response ETag is the new timeline revision. applied_ops is the integer count of applied ops. Live engine: after the commit the backend reads the session's clip list back and checks every op landed (removed ids gone; updated / inserted / restored ids present once, on their lane, at the committed timing); any mismatch is engine_reload_required=true with engine_divergent [{id, reason}] and reload = the engine:reload operation to call. engine_loaded=false means no live session holds the project (nothing to mirror; the next load reads the saved clips). undo.inverse_ops is the batch that undoes this one (same op shape, `expected` = the post-batch state, reverse order): POST it back here to undo. inserted lists every inserted/restored clip {clipId, laneId, sourceId, startMs, durationSec, audioOffsetSec, engine_attached}: a pasted clip with engine_attached=true plays at once, so no attachClipToSession call is needed. A batch that committed is never reported as a 5xx: when a post-commit step fails the 200 carries postCommitError and engine_reload_required=true, and the Idempotency-Key replays that result (replay=true in the body plus the Idempotent-Replayed: true header). Lane changes are NOT supported here (ops keep each clip on its lane): use POST clips/{clip_id}:move-to-lane for cross-lane moves (e.g. a cross-track paste).",
        "operationId": "applyClipBatch",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "ops": {
                    "items": {
                      "$ref": "#/components/schemas/ClipBatchOp"
                    },
                    "maxItems": 256,
                    "minItems": 1,
                    "type": "array"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "ops"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "applied": {
                      "type": "boolean"
                    },
                    "applied_ops": {
                      "description": "How many ops the batch applied (the engine's count; 0 or null on a replay that applied nothing new).",
                      "minimum": 0,
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "engine_attached": {
                      "description": "Present when the batch inserted/restored clips: all of them play in the live session now.",
                      "type": "boolean"
                    },
                    "engine_divergent": {
                      "items": {
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "reason": {
                            "enum": [
                              "still_playing",
                              "missing",
                              "duplicate",
                              "wrong_lane",
                              "timing",
                              "unreadable"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "reason"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "engine_loaded": {
                      "description": "Whether a live session hosts the project (null: an older engine did not say).",
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "engine_reload_required": {
                      "type": "boolean"
                    },
                    "engine_verified": {
                      "description": "true: the live clip list was read back and checked; false: the read failed; null: nothing to check (no live session, or a replay).",
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "inserted": {
                      "items": {
                        "$ref": "#/components/schemas/InsertedClip"
                      },
                      "type": "array"
                    },
                    "postCommitError": {
                      "description": "Present only when the batch committed but a later step (the revision read, the live-engine mirror) failed: the batch IS applied, engine_reload_required is true and timelineRevision may be null (re-read it).",
                      "type": "object"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "reload": {
                      "$ref": "#/components/schemas/EngineReloadGuidance"
                    },
                    "replay": {
                      "type": "boolean"
                    },
                    "timelineRevision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "undo": {
                      "$ref": "#/components/schemas/ClipBatchUndo"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Apply an atomic clip batch",
        "tags": [
          "clips"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "apply_clip_batch",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/collaborators": {
      "post": {
        "description": "Owner only. Share with a Freestyle user by @username / profile name (user) or user_id as viewer or editor (the project's default role when omitted). Inviting someone who already has access updates their role.",
        "operationId": "inviteCollaborator",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "role": {
                    "enum": [
                      "viewer",
                      "editor"
                    ],
                    "type": "string"
                  },
                  "user": {
                    "maxLength": 120,
                    "type": "string"
                  },
                  "user_id": {
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectShare"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Invite a collaborator",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "invite_collaborator",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "owner",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/collaborators/{user}": {
      "delete": {
        "description": "Owner only. Revokes their access at once. The DELETE itself is the confirmation. {user} is a user id or an @username.",
        "operationId": "removeCollaborator",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectShare"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Remove a collaborator",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "remove_collaborator",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "owner",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/collaborators/{user}/role": {
      "put": {
        "description": "Owner only. {user} is a user id or an @username from getProjectShare.",
        "operationId": "setCollaboratorRole",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "user",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "role": {
                    "enum": [
                      "viewer",
                      "editor"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "role"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectShare"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Change a collaborator's role",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "set_collaborator_role",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "owner",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/daw-import/upload": {
      "post": {
        "description": "Import an FL Studio .flp (or a zipped loop package) INTO this project, replacing its Studio contents: lanes, clips, patterns and placements, buses and plug-in chains, the backing track and the tempo/key all become the imported file's, exactly as a new import would create them. The project's id, title, cover, notes, sharing, collaborators, saves and lyrics stay. Only FL Studio projects whose audio clips are not stretched can replace (others, and format logic: 400 replace_import_unsupported). base64, max 25 MB decoded; the bytes pass the same upload scanner as the app's import, and the call is an upload: it pays the upload admission (concurrency leases, hourly / daily / storage byte quotas: 429 upload_concurrency / upload_quota), needs an Idempotency-Key, and has its own budgets (RATE_LIMIT_API_V1_DAW_IMPORT_USER_PER_HOUR per user, RATE_LIMIT_API_V1_DAW_IMPORT_PROJECT_PER_HOUR per project). The import writes a restorable save in the same transaction (previousSaveId; the owner and every editor may restoreProjectSave it; the newest 5 such saves are kept per project); a failed import changes nothing and leaves no save. Editor or owner (viewers 403 editor_required), Pro. An open live session is reloaded in the background (engine.reload=scheduled) unless the project is recording (engine.reload=skipped, engine.note says why); every open Studio tab reconciles at once. Errors: 400 invalid_argument (format / file name), 413 file_too_large, 400 project_import_invalid (bad archive or audio), 502 project_import_failed or the importer's own flp_import_* code.",
        "operationId": "importDawProjectIntoProject",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "base64": {
                    "description": "File bytes, base64 (a data: URL is accepted).",
                    "minLength": 4,
                    "type": "string"
                  },
                  "filename": {
                    "description": "e.g. Song.flp or Song.zip.",
                    "maxLength": 160,
                    "type": "string"
                  },
                  "format": {
                    "enum": [
                      "flp"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "format",
                  "base64"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DawImportResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "413": {
            "description": "file_too_large: the decoded file exceeds 25 MB."
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "media:upload"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Replace a project's contents with a DAW project file",
        "tags": [
          "media"
        ],
        "x-freestyle-budgets": [
          {
            "bucket": "api_v1:daw_import",
            "default": 30,
            "perSeconds": 3600
          }
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "import_daw_project (project_id)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "media:upload"
      }
    },
    "/projects/{project_id}/engine/actions/add_808": {
      "post": {
        "description": "808 bassline from a library 808 pitched to the song's chord roots (or chords) from the drop; rhythm 'busy'.",
        "operationId": "engine_add_808",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "chords": {
                    "type": "array",
                    "x-inferred": true
                  },
                  "name": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "rhythm": {
                    "x-inferred": true
                  },
                  "sound_query": {
                    "x-inferred": true
                  },
                  "start_measure": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "verify": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "add_808 (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(add_808)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/add_drum_hits": {
      "post": {
        "description": "Library sound (sound_query/sound_id) on beats=[4] or steps, looped on the song grid from the drop to the end, or start/end_measure, start/end_sec, ranges=[{start_sec,end_sec}]. bars, velocity, name optional.",
        "operationId": "engine_add_drum_hits",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "audio_file_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "bars": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "beats": {
                    "x-inferred": true
                  },
                  "end_measure": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "end_sec": {
                    "type": "number",
                    "x-inferred": true,
                    "x-unit": "seconds"
                  },
                  "name": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "ranges": {
                    "x-inferred": true
                  },
                  "sound_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "sound_query": {
                    "x-inferred": true
                  },
                  "start_measure": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "start_sec": {
                    "type": "number",
                    "x-inferred": true,
                    "x-unit": "seconds"
                  },
                  "steps": {
                    "type": "array",
                    "x-inferred": true
                  },
                  "velocity": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "verify": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "add_drum_hits (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(add_drum_hits)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/add_groove": {
      "post": {
        "description": "Genre groove (trap, boom_bap, rnb, ...; default guessed) with accents/ghosts/swing from the drop; layers around backing drums unless full_kit; replace_original mutes the song's own drum stem.",
        "operationId": "engine_add_groove",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "allow_duplicates": {
                    "x-inferred": true
                  },
                  "end_measure": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "full_kit": {
                    "x-inferred": true
                  },
                  "genre": {
                    "x-inferred": true
                  },
                  "replace_original": {
                    "x-inferred": true
                  },
                  "roles": {
                    "x-inferred": true
                  },
                  "start_measure": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "swing": {
                    "type": "number",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "add_groove (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(add_groove)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/add_hat_rolls": {
      "post": {
        "description": "Hi-hat rolls on the last beat of every N bars (every_bars, division 1/32|1/16T|1/32T).",
        "operationId": "engine_add_hat_rolls",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "channel": {
                    "maximum": 16,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "division": {
                    "x-inferred": true
                  },
                  "every_bars": {
                    "x-inferred": true
                  },
                  "track": {
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "add_hat_rolls (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(add_hat_rolls)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/add_instrument_track": {
      "post": {
        "description": "Instrument track + its part in one call. role (bass_guitar|rhythm_guitar_sustained|rhythm_guitar_short|lead_guitar|organ|piano|keys|pad|strings|synth_lead|synth_bass|808) picks a real patch from ALL plugins; articulation sustained|short; instrument forces a plugin; preset names one; chords=[...] or ['song'] or notes; fill_song loops it.",
        "operationId": "engine_add_instrument_track",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "articulation": {
                    "x-inferred": true
                  },
                  "bars": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "beats_per_chord": {
                    "x-inferred": true
                  },
                  "chords": {
                    "type": "array",
                    "x-inferred": true
                  },
                  "fill_song": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "genre": {
                    "x-inferred": true
                  },
                  "instrument": {
                    "x-inferred": true
                  },
                  "name": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "notes": {
                    "type": "array",
                    "x-inferred": true
                  },
                  "octave": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "pattern_name": {
                    "x-inferred": true
                  },
                  "place_at_measure": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "preset": {
                    "x-inferred": true
                  },
                  "repeat": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "role": {
                    "x-inferred": true
                  },
                  "verify": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "add_instrument_track (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(add_instrument_track)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/add_lane_plugin": {
      "post": {
        "description": "Add a catalog plug-in (type) to a lane's chain, persisted like the Studio's add. position (0-based slot) inserts it there instead of appending.",
        "operationId": "engine_add_lane_plugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "open_editor": {
                    "x-inferred": true
                  },
                  "position": {
                    "x-inferred": true
                  },
                  "preset": {
                    "x-inferred": true
                  },
                  "type": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id",
                  "type"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "add_lane_plugin (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(add_lane_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/adjust_volume": {
      "post": {
        "description": "Turn tracks up/down: tracks, change_db, or direction up/down + amount 'a little'/'a lot'.",
        "operationId": "engine_adjust_volume",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "amount": {
                    "type": "number",
                    "x-inferred": true
                  },
                  "change_db": {
                    "type": "number",
                    "x-inferred": true
                  },
                  "direction": {
                    "x-inferred": true
                  },
                  "tracks": {
                    "type": "array",
                    "x-inferred": true
                  }
                },
                "required": [
                  "tracks"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "adjust_volume (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(adjust_volume)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/align_to_beat": {
      "post": {
        "description": "Fix off-beat pattern tracks: exact song tempo + downbeat, snap to bar lines, re-tile, listen. tracks = names.",
        "operationId": "engine_align_to_beat",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "tracks": {
                    "type": "array",
                    "x-inferred": true
                  },
                  "verify": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "align_to_beat (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(align_to_beat)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/all_notes_off": {
      "post": {
        "description": "Stop all notes on an instrument.",
        "operationId": "engine_all_notes_off",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "instrument_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "instrument_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "all_notes_off (instruments, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(all_notes_off)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/analyze_harmony": {
      "post": {
        "description": "The backing's real key, chord loop and drop measure. Call before writing chords/melodies.",
        "operationId": "engine_analyze_harmony",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "analyze_harmony (compose, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(analyze_harmony)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/analyze_song_sections": {
      "post": {
        "description": "Song sections (intro/verse/hook/...) with sec + measures from the backing.",
        "operationId": "engine_analyze_song_sections",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "analyze_song_sections (compose, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(analyze_song_sections)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/apply_lane_plugin_preset": {
      "post": {
        "description": "Apply a named lane plugin preset. Presets exist only for Nectar and Auto-Tune slots; any other plug-in is refused with preset_not_supported (409).",
        "operationId": "engine_apply_lane_plugin_preset",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "preset": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id",
                  "plugin_index",
                  "preset"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "apply_lane_plugin_preset (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(apply_lane_plugin_preset)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/apply_mix": {
      "post": {
        "description": "Apply several mix changes at once, all-or-nothing, as ONE mix revision step: changes = [{target:'lane', lane_id|track_id, gain?(0-4), pan?(-1..1), muted?, soloed?, bus_id?}, {target:'master', gain?, pan?}, {target:'bus', bus_id, gain?, pan?, muted?, soloed?}] (max 64; one value per control). Every change is validated before any applies. The reply has mix_revision and undo_changes (the inverse batch). Pass expected_mix_revision on execute_pro_action to refuse the move if the mix changed since you read it. pattern_runtime_muted_placement_ids (optional) = the project's full silenced pattern placement set, installed in the same revision step.",
        "operationId": "engine_apply_mix",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "changes": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "bus_id": {
                          "maxLength": 64,
                          "type": "string"
                        },
                        "gain": {
                          "maximum": 4,
                          "minimum": 0,
                          "type": "number"
                        },
                        "lane_id": {
                          "maxLength": 64,
                          "type": "string"
                        },
                        "muted": {
                          "type": "boolean"
                        },
                        "pan": {
                          "description": "Lane pan, bus pan (target bus) or master pan (target master).",
                          "maximum": 1,
                          "minimum": -1,
                          "type": "number"
                        },
                        "persist": {
                          "type": "boolean"
                        },
                        "soloed": {
                          "type": "boolean"
                        },
                        "target": {
                          "enum": [
                            "lane",
                            "master",
                            "bus"
                          ],
                          "type": "string"
                        },
                        "track_id": {
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "target"
                      ],
                      "type": "object"
                    },
                    "maxItems": 64,
                    "minItems": 1,
                    "type": "array"
                  },
                  "pattern_runtime_muted_placement_ids": {
                    "description": "The project's full silenced pattern placement set (what resync_patterns muted_placement_ids takes), installed by the engine inside the same mix batch.",
                    "items": {
                      "maxLength": 128,
                      "type": "string"
                    },
                    "maxItems": 4096,
                    "type": "array"
                  }
                },
                "required": [
                  "changes"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "apply_mix (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(apply_mix)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/attach_clip_to_session": {
      "post": {
        "description": "Load one already-saved clip (db_track_id = the clipId returned by upload_audio / add_audio_from_url / get_project) into the running live session, exactly as session load does (no re-upload, no reload). Returns the engine track_id/clip_id; 409 means it is already loaded.",
        "operationId": "engine_attach_clip_to_session",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "db_track_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "name": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "db_track_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "attach_clip_to_session (timeline, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(attach_clip_to_session)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/audit_arrangement": {
      "post": {
        "description": "AI-tell audit of the song on the timeline: energy drops, entries/exits, intro not full, chorus 2 varies, fills, grid-locked or flat parts, muddy voicings, 808 on the kick. fix=true rewrites the note-level tells; returns the move for the rest.",
        "operationId": "engine_audit_arrangement",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "fix": {
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "audit_arrangement (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(audit_arrangement)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/audition_patch": {
      "post": {
        "description": "HEAR a track's patch: plays a short phrase (chords / bassline / melody in the song's key) through it offline and returns measurements plus what an audio model heard, identified BLIND, and its answer to your question. Pass family + patch_key to set that candidate first.",
        "operationId": "engine_audition_patch",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "family": {
                    "x-inferred": true
                  },
                  "patch_key": {
                    "x-inferred": true
                  },
                  "question": {
                    "x-inferred": true
                  },
                  "role": {
                    "x-inferred": true
                  },
                  "track": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "track"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "audition_patch (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(audition_patch)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/clear_track_plugins": {
      "post": {
        "description": "Remove every plugin from a track chain.",
        "operationId": "engine_clear_track_plugins",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "clear_track_plugins (plugins, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(clear_track_plugins)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/close_plugin_editor": {
      "post": {
        "description": "Close (hide) a track plugin's native editor.",
        "operationId": "engine_close_plugin_editor",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "plugin_index"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "close_plugin_editor (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(close_plugin_editor)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/compose_song": {
      "post": {
        "description": "Whole song in ONE call: genre, key, bpm, structure=[{section,bars,energy}], progressions={section:'i VI III VII'}, parts, patches={part:'name'}; code humanizes, voices, arranges and audits it.",
        "operationId": "engine_compose_song",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bass": {
                    "x-inferred": true
                  },
                  "bpm": {
                    "type": "number",
                    "x-inferred": true
                  },
                  "craft": {
                    "x-inferred": true
                  },
                  "genre": {
                    "x-inferred": true
                  },
                  "instruments": {
                    "x-inferred": true
                  },
                  "key": {
                    "x-inferred": true
                  },
                  "parts": {
                    "x-inferred": true
                  },
                  "patches": {
                    "x-inferred": true
                  },
                  "progressions": {
                    "x-inferred": true
                  },
                  "sounds": {
                    "x-inferred": true
                  },
                  "structure": {
                    "x-inferred": true
                  },
                  "variation": {
                    "x-inferred": true
                  },
                  "verify": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "compose_song (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(compose_song)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/convert_musical_time": {
      "post": {
        "description": "Convert positions between tick, beat, bar:beat:tick, seconds, ms and frames through the project's tempo/meter map.",
        "operationId": "engine_convert_musical_time",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "positions": {
                    "items": {
                      "description": "Exactly one coordinate: {tick} | {beat} | {bar, beat?, tick?} (BBT) | {bar_float} | {seconds} | {ms} | {frame, sample_rate?} | 'bar:beat:tick' text.",
                      "oneOf": [
                        {
                          "pattern": "^[0-9]+(:[0-9]+(:[0-9]+)?)?$",
                          "type": "string"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "bar": {
                              "minimum": 1,
                              "type": "integer"
                            },
                            "bar_float": {
                              "minimum": 0,
                              "type": "number",
                              "x-unit": "continuous bar (1.0 = bar 1 downbeat, 0.x = inside the pickup)"
                            },
                            "beat": {
                              "minimum": 0,
                              "type": "number",
                              "x-unit": "quarter-note beats, 0-based"
                            },
                            "frame": {
                              "minimum": 0,
                              "type": "integer"
                            },
                            "ms": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "sample_rate": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "seconds": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "tick": {
                              "minimum": 0,
                              "type": "number",
                              "x-unit": "PPQ ticks (96 per quarter note)"
                            }
                          },
                          "type": "object"
                        }
                      ]
                    },
                    "maxItems": 256,
                    "type": "array"
                  },
                  "sample_rate": {
                    "maximum": 384000,
                    "minimum": 8000,
                    "type": "number",
                    "x-unit": "Hz (adds frame)"
                  }
                },
                "required": [
                  "positions"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "convert_musical_time (tempo, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(convert_musical_time)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/copy_append_clip": {
      "post": {
        "description": "Duplicate a clip (clip_id = durable id; track_id accepted as an alias) on its lane, at start_ms or right after the lane's last clip.",
        "operationId": "engine_copy_append_clip",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "clip_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "start_ms": {
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "milliseconds (project timeline)"
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "copy_append_clip (timeline, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(copy_append_clip)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/create_empty_lane": {
      "post": {
        "description": "Create an empty Pro lane.",
        "operationId": "engine_create_empty_lane",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "label": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "kind"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "create_empty_lane (timeline, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(create_empty_lane)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/create_pattern": {
      "post": {
        "description": "Create a persisted pattern with notes, steps, samples, instruments, and MIDI CC automation.",
        "operationId": "engine_create_pattern",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "pattern": {
                    "type": "object",
                    "x-inferred": true
                  }
                },
                "required": [
                  "pattern"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "create_pattern (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(create_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/create_pattern_placement": {
      "post": {
        "description": "Place a pattern clip on the Pro timeline.",
        "operationId": "engine_create_pattern_placement",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "placement": {
                    "type": "object",
                    "x-inferred": true
                  }
                },
                "required": [
                  "placement"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "create_pattern_placement (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(create_pattern_placement)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/create_track": {
      "post": {
        "description": "Create an empty audio or instrument track.",
        "operationId": "engine_create_track",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "label": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "kind"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "create_track (timeline, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(create_track)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/delete_bus": {
      "post": {
        "description": "Delete a mixer bus from the live engine. Aux sends into it are removed with it (reply removed_sends), so a later bus with the same id starts with none.",
        "operationId": "engine_delete_bus",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "bus_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "delete_bus (mixer, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(delete_bus)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/delete_bus_plugin": {
      "post": {
        "description": "Remove a plugin from a bus chain (bus_id='master' for the master inserts). The reply's removed {instance_id, type, bypassed, chain_position, state_base64} re-adds it with load_bus_plugin (undo).",
        "operationId": "engine_delete_bus_plugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  }
                },
                "required": [
                  "bus_id",
                  "plugin_index"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "delete_bus_plugin (plugins, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(delete_bus_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/delete_clip": {
      "post": {
        "description": "Delete a clip from a track.",
        "operationId": "engine_delete_clip",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "clip_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "clip_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "delete_clip (timeline, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(delete_clip)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/delete_lane_plugin": {
      "post": {
        "description": "Remove one plug-in instance from a lane's chain: the live slot and its saved chain row in one operation. A saved row whose plug-in is not live is removed from the saved chain.",
        "operationId": "engine_delete_lane_plugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "instance_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "instance_id",
                  "lane_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "delete_lane_plugin (plugins, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(delete_lane_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/delete_pattern": {
      "post": {
        "description": "Soft-delete a pattern after its placements are removed.",
        "operationId": "engine_delete_pattern",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "pattern_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "pattern_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "delete_pattern (patterns, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(delete_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/delete_pattern_placement": {
      "post": {
        "description": "Soft-delete a pattern timeline clip.",
        "operationId": "engine_delete_pattern_placement",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "placement_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "placement_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "delete_pattern_placement (patterns, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(delete_pattern_placement)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/delete_track": {
      "post": {
        "description": "Delete a track and its live contents.",
        "operationId": "engine_delete_track",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "delete_track (timeline, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(delete_track)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/detect_tempo": {
      "post": {
        "description": "The song's BPM from the backing (never ask the user).",
        "operationId": "engine_detect_tempo",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "detect_tempo (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(detect_tempo)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/finalize_recording": {
      "post": {
        "description": "End the caller's own recording arm (never a take a browser or live-room member armed or joined) and, with take_id, save the take recorded on the caller's live-ingest uplink as a clip: scanned and promoted as the calling user exactly like a Studio take. Send take_stop on the uplink first. Reply: saved, state, track_id, lane_id, start_ms, duration_sec, engine_disarmed. wait_ms (default 8000, max 10000) bounds the wait; wait_for='placed' answers as soon as the clip is on its lane (about a second; saved=false, state='saving', track_id final) while the scan and store finish, and a later call with the same take_id answers saved=true; the default wait_for='saved' answers once the take is stored. recording_take_pending = retry; recording_take_silent (no audio) and recording_take_rejected (refused or failed) are final: record again with a new take_id (a take_id is single-use).",
        "operationId": "engine_finalize_recording",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "take_id": {
                    "description": "The take_id the client sent in take_start on its live-ingest uplink.",
                    "maxLength": 96,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]{1,96}$",
                    "type": "string"
                  },
                  "wait_for": {
                    "default": "saved",
                    "description": "placed: answer once the clip is on its lane (saved=false, state=saving; call again for saved=true). saved: answer once the take is stored.",
                    "enum": [
                      "saved",
                      "placed"
                    ],
                    "type": "string"
                  },
                  "wait_ms": {
                    "description": "How long to wait for the saved clip (default 8000).",
                    "maximum": 10000,
                    "minimum": 0,
                    "type": "integer",
                    "x-unit": "milliseconds"
                  }
                },
                "required": [
                  "project_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "finalize_recording (recording, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(finalize_recording)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/find_sounds": {
      "post": {
        "description": "Best library one-shots for a role ('stomp', 'dusty knocking kick'), ranked + auditioned + measured against the producer words; top 3 marked pick 1-3 with why + next step.",
        "operationId": "engine_find_sounds",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "avoid": {
                    "x-inferred": true
                  },
                  "genre": {
                    "x-inferred": true
                  },
                  "limit": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "query": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "tag": {
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "find_sounds (compose, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(find_sounds)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/find_splice_sounds": {
      "post": {
        "description": "Search the user's Splice account for one-shots (role e.g. snare, genre); owned sounds are free, new ones need the user's credit OK.",
        "operationId": "engine_find_splice_sounds",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "genre": {
                    "x-inferred": true
                  },
                  "limit": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "query": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "role": {
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "find_splice_sounds (compose, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(find_splice_sounds)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/get_bus_plugin_live_state": {
      "post": {
        "description": "Read a live bus plugin's parameters and state.",
        "operationId": "engine_get_bus_plugin_live_state",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "include_parameters": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  }
                },
                "required": [
                  "bus_id",
                  "plugin_index"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_bus_plugin_live_state (plugins, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_bus_plugin_live_state)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_clip_waveform": {
      "post": {
        "description": "Per-channel min/max/RMS waveform of one clip's source audio over a frame range (clip_id = durable clip id or 'backing'; start_frame/end_frame in source frames; buckets 1-8192). Raw PCM, pre clip-gain, pre effects.",
        "operationId": "engine_get_clip_waveform",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "buckets": {
                    "default": 1024,
                    "maximum": 8192,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "clip_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "end_frame": {
                    "minimum": 1,
                    "type": "integer",
                    "x-unit": "source sample frames"
                  },
                  "start_frame": {
                    "minimum": 0,
                    "type": "integer",
                    "x-unit": "source sample frames"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_clip_waveform (timeline, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_clip_waveform)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_history": {
      "post": {
        "description": "List project undo/redo history.",
        "operationId": "engine_get_history",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "limit": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_history (history, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_history)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_history_status": {
      "post": {
        "description": "Read undo/redo availability.",
        "operationId": "engine_get_history_status",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_history_status (history, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_history_status)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_lane_eq": {
      "post": {
        "description": "Read a lane's EQ: the lane EQ stage (set_track_eq_band) and every native EQ plug-in on its chain (set_lane_plugin_eq_band), as typed bands (band, enabled, type, frequency_hz, gain_db, q).",
        "operationId": "engine_get_lane_eq",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_lane_eq (mixer, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_lane_eq)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_lane_plugin_state": {
      "post": {
        "description": "Read a lane plugin's parameters and state (a native EQ slot adds its typed bands as eq).",
        "operationId": "engine_get_lane_plugin_state",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "include_parameters": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "include_state_hash": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id",
                  "plugin_index"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_lane_plugin_state (plugins, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_lane_plugin_state)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_live_status": {
      "post": {
        "description": "Read live input/recording status (connected ingest clients, take state).",
        "operationId": "engine_get_live_status",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_live_status (recording, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_live_status)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_loop_region": {
      "post": {
        "description": "Read the persisted project loop region.",
        "operationId": "engine_get_loop_region",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_loop_region (transport, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_loop_region)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_mix_revision": {
      "post": {
        "description": "Read the live mix revision (bumped by every mix change from any source).",
        "operationId": "engine_get_mix_revision",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_mix_revision (mixer, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_mix_revision)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_pattern_eq": {
      "post": {
        "description": "Read a pattern placement's EQ: typed bands (band, enabled, type, frequency_hz, gain_db, q).",
        "operationId": "engine_get_pattern_eq",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "placement_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "placement_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_pattern_eq (patterns, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_pattern_eq)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_pattern_sample_peaks": {
      "post": {
        "description": "Waveform peaks (max |sample| per bucket, not normalized) of one pattern sample, from the PCM the engine decodes itself (it holds the media decrypt grant).",
        "operationId": "engine_get_pattern_sample_peaks",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "audio_file_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "buckets": {
                    "default": 1024,
                    "maximum": 8192,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_pattern_sample_peaks (patterns, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_pattern_sample_peaks)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_plugin_editor_status": {
      "post": {
        "description": "Read whether a track plugin's native editor is open and its window size.",
        "operationId": "engine_get_plugin_editor_status",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "plugin_index"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_plugin_editor_status (plugins, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_plugin_editor_status)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_session_status": {
      "post": {
        "description": "Read the loaded project/session state.",
        "operationId": "engine_get_session_status",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_session_status (project, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_session_status)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_tempo_stretch_job": {
      "post": {
        "description": "Read a set_project_tempo mode=stretch_audio job: status queued|running|succeeded|failed|undone, per-clip render progress, before/after starts and the undo call.",
        "operationId": "engine_get_tempo_stretch_job",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "job_id": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "job_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_tempo_stretch_job (tempo, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_tempo_stretch_job)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/get_timing_map": {
      "post": {
        "description": "Read the project's tempo segments (ticks @96 PPQ, quarter-note bpm, curve constant|linear), meter map (bars, n/d, accent groups, pickup), pattern meters, revision and units; positions=[...] converts tick/beat/BBT/seconds.",
        "operationId": "engine_get_timing_map",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "include_history": {
                    "default": false,
                    "type": "boolean"
                  },
                  "positions": {
                    "items": {
                      "description": "Exactly one coordinate: {tick} | {beat} | {bar, beat?, tick?} (BBT) | {bar_float} | {seconds} | {ms} | {frame, sample_rate?} | 'bar:beat:tick' text.",
                      "oneOf": [
                        {
                          "pattern": "^[0-9]+(:[0-9]+(:[0-9]+)?)?$",
                          "type": "string"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "bar": {
                              "minimum": 1,
                              "type": "integer"
                            },
                            "bar_float": {
                              "minimum": 0,
                              "type": "number",
                              "x-unit": "continuous bar (1.0 = bar 1 downbeat, 0.x = inside the pickup)"
                            },
                            "beat": {
                              "minimum": 0,
                              "type": "number",
                              "x-unit": "quarter-note beats, 0-based"
                            },
                            "frame": {
                              "minimum": 0,
                              "type": "integer"
                            },
                            "ms": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "sample_rate": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "seconds": {
                              "minimum": 0,
                              "type": "number"
                            },
                            "tick": {
                              "minimum": 0,
                              "type": "number",
                              "x-unit": "PPQ ticks (96 per quarter note)"
                            }
                          },
                          "type": "object"
                        }
                      ]
                    },
                    "maxItems": 256,
                    "type": "array"
                  },
                  "sample_rate": {
                    "maximum": 384000,
                    "minimum": 8000,
                    "type": "number",
                    "x-unit": "Hz (adds frame)"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_timing_map (tempo, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_timing_map)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_transport": {
      "post": {
        "description": "Read playhead, playback, and loop state.",
        "operationId": "engine_get_transport",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_transport (transport, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_transport)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/get_transport_clock": {
      "post": {
        "description": "Read the high-resolution transport clock.",
        "operationId": "engine_get_transport_clock",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "get_transport_clock (transport, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_transport_clock)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/history_redo": {
      "post": {
        "description": "Redo the latest undone Pro edit.",
        "operationId": "engine_history_redo",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "project_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "history_redo (history, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(history_redo)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/history_undo": {
      "post": {
        "description": "Undo the latest Pro edit.",
        "operationId": "engine_history_undo",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "project_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "history_undo (history, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(history_undo)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/launch_pattern_previews": {
      "post": {
        "description": "Scene launch: start several ARMED pattern previews (preview_pattern arm_only) together at one engine time. previews [{armed_signature, slot_id?, repeat_count? (default 64), gain?}] (1-8); quantize none|beat|bar aligns the start to the grid of your running layers; stop_others ends your other layers at that instant. A slot already playing is replaced exactly at the launch time. At most 8 previews sound at once (too_many_previews).",
        "operationId": "engine_launch_pattern_previews",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "beats_per_bar": {
                    "default": 4,
                    "maximum": 32,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "lead_sec": {
                    "default": 0.05,
                    "maximum": 2,
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "seconds"
                  },
                  "preview_request_id": {
                    "description": "Increasing id per press; a stop with id N refuses starts <= N.",
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "previews": {
                    "description": "The clips of the scene: one armed preview per slot (slot_id defaults to the armed_signature).",
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "armed_signature": {
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                          "type": "string"
                        },
                        "gain": {
                          "default": 0.92,
                          "maximum": 2,
                          "minimum": 0,
                          "type": "number"
                        },
                        "repeat_count": {
                          "default": 64,
                          "maximum": 64,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "slot_id": {
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "armed_signature"
                      ],
                      "type": "object"
                    },
                    "maxItems": 8,
                    "minItems": 1,
                    "type": "array"
                  },
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "quantize": {
                    "default": "none",
                    "description": "Start on the next beat / bar of your running layers' grid.",
                    "enum": [
                      "none",
                      "beat",
                      "bar"
                    ],
                    "type": "string"
                  },
                  "stop_others": {
                    "default": false,
                    "description": "Your layers in other slots stop at the launch instant.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "project_id",
                  "previews"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "launch_pattern_previews (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(launch_pattern_previews)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/list_buses": {
      "post": {
        "description": "List mixer buses and routing state.",
        "operationId": "engine_list_buses",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "list_buses (mixer, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(list_buses)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/list_installed_instruments": {
      "post": {
        "description": "Which instrument generators this engine host can instantiate.",
        "operationId": "engine_list_installed_instruments",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "list_installed_instruments (instruments, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(list_installed_instruments)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/list_lane_plugins": {
      "post": {
        "description": "List the plugins on a lane.",
        "operationId": "engine_list_lane_plugins",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "list_lane_plugins (plugins, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(list_lane_plugins)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/list_pattern_placements": {
      "post": {
        "description": "List pattern clips placed on the Pro timeline.",
        "operationId": "engine_list_pattern_placements",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "list_pattern_placements (patterns, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(list_pattern_placements)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/list_patterns": {
      "post": {
        "description": "List persisted patterns, notes, steps, and MIDI CC automation.",
        "operationId": "engine_list_patterns",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "list_patterns (patterns, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(list_patterns)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/list_track_sends": {
      "post": {
        "description": "List a lane's live aux sends [{bus_id, level, pre_fader}].",
        "operationId": "engine_list_track_sends",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "list_track_sends (mixer, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(list_track_sends)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/list_tracks": {
      "post": {
        "description": "List loaded Pro tracks, lanes, and clips.",
        "operationId": "engine_list_tracks",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "list_tracks (timeline, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(list_tracks)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-read-only": true,
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/actions/listen": {
      "post": {
        "description": "HEAR tracks or the whole mix over a bar range (tracks omitted or 'mix' = the mix): renders offline, measures, and an audio model describes what it hears (blind) and answers your question.",
        "operationId": "engine_listen",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "end_bar": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "question": {
                    "x-inferred": true
                  },
                  "start_bar": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "tracks": {
                    "type": "array",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "listen (compose, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(listen)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/listen_back": {
      "post": {
        "description": "Render tracks and HEAR them (level, clipping, timing vs the beat, in key) and fix what it can. tracks = names.",
        "operationId": "engine_listen_back",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "fix": {
                    "x-inferred": true
                  },
                  "tracks": {
                    "type": "array",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "listen_back (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(listen_back)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/live_ingest_close": {
      "post": {
        "description": "Close the calling user's own live input (ingest) connection by clientId.",
        "operationId": "engine_live_ingest_close",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "clientId": {
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "live_ingest_close (recording, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(live_ingest_close)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/live_ingest_offer": {
      "post": {
        "description": "Send a WebRTC SDP offer with the microphone track (sendonly Opus) and the negotiated data channel id 200 (mozart-live-ingest) for live input; returns Mozart's answer. The uplink is the calling user's microphone (own vocal lane, takes saved as that user). offer={sdp,type}; optional clientId, lane_id (record lane), delay_ms, turn_credentials (from get_turn_credentials), profile. Requires a 48 kHz engine. Data channel: keepalive every 5 s, take_start / take_stop (see start_recording).",
        "operationId": "engine_live_ingest_offer",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "clientId": {
                    "x-inferred": true
                  },
                  "delay_ms": {
                    "type": "integer",
                    "x-inferred": true,
                    "x-unit": "milliseconds"
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "offer": {
                    "properties": {
                      "sdp": {
                        "type": "string"
                      },
                      "type": {
                        "enum": [
                          "offer"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "sdp",
                      "type"
                    ],
                    "type": "object"
                  },
                  "profile": {
                    "x-inferred": true
                  },
                  "turn_credentials": {
                    "description": "username/credential/expiresAt from get_turn_credentials",
                    "type": "object"
                  }
                },
                "required": [
                  "offer"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "live_ingest_offer (recording, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(live_ingest_offer)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/load_bus_plugin": {
      "post": {
        "description": "Add a plugin to a bus chain. bus_id='master' is the master insert chain (processed on the final mix, live and in exports, before the master fader; saved automatically). Optional type_id (catalog id), instance_id, state_base64 / bypassed / position (restore a removed insert in place). The reply carries plugin_index and instance_id.",
        "operationId": "engine_load_bus_plugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "bypassed": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "index": {
                    "x-inferred": true
                  },
                  "instance_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "path": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "position": {
                    "x-inferred": true
                  },
                  "state_base64": {
                    "x-inferred": true
                  },
                  "type_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "bus_id",
                  "path"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "load_bus_plugin (plugins, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(load_bus_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/load_labs": {
      "post": {
        "description": "Load LABS on an instrument lane.",
        "operationId": "engine_load_labs",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "preset": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "load_labs (instruments, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(load_labs)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/load_lane_chain": {
      "post": {
        "description": "Load a lane's saved chain (track_plugin_state rows) into the live engine.",
        "operationId": "engine_load_lane_chain",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "name": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "load_lane_chain (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(load_lane_chain)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/load_omnisphere": {
      "post": {
        "description": "Load Omnisphere on an instrument lane.",
        "operationId": "engine_load_omnisphere",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "patch": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "load_omnisphere (instruments, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(load_omnisphere)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/load_track_plugin": {
      "post": {
        "description": "Add a plugin to a track chain.",
        "operationId": "engine_load_track_plugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "index": {
                    "x-inferred": true
                  },
                  "path": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "path"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "load_track_plugin (plugins, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(load_track_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/mix_check": {
      "post": {
        "description": "MEASURE the mix (or tracks) over a bar range like a mix engineer: integrated/short-term LUFS (BS.1770), true peak dBTP, PLR, tonal balance vs the genre's target curve, low-end mono, stereo width, part collisions, vocal vs beat. Returns flags, ONE nextMove, sources; called again after one change it returns the before/after delta and logs it. genre/balance (vocal_on_top|vocal_inside_beat)/stage (mix|master) override the brief.",
        "operationId": "engine_mix_check",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "balance": {
                    "x-inferred": true
                  },
                  "end_bar": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "genre": {
                    "x-inferred": true
                  },
                  "stage": {
                    "x-inferred": true
                  },
                  "start_bar": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "tracks": {
                    "type": "array",
                    "x-inferred": true
                  },
                  "why": {
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "mix_check (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(mix_check)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/move_bus_plugin": {
      "post": {
        "description": "Reorder a bus plugin (bus_id='master' for the master inserts).",
        "operationId": "engine_move_bus_plugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "to_index": {
                    "type": "integer",
                    "x-inferred": true
                  }
                },
                "required": [
                  "bus_id",
                  "plugin_index",
                  "to_index"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "move_bus_plugin (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(move_bus_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/move_clip_to_lane": {
      "post": {
        "description": "Move a clip (durable clip_id) to another lane (lane_id), optionally to start_ms.",
        "operationId": "engine_move_clip_to_lane",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "clip_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "start_ms": {
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "milliseconds (project timeline)"
                  }
                },
                "required": [
                  "clip_id",
                  "lane_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "move_clip_to_lane (timeline, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(move_clip_to_lane)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/move_lane_plugin": {
      "post": {
        "description": "Move one plug-in instance to to_index in its lane's chain (the Studio's drag reorder; the engine renumbers the persisted chain order).",
        "operationId": "engine_move_lane_plugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "instance_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "to_index": {
                    "type": "integer",
                    "x-inferred": true
                  }
                },
                "required": [
                  "instance_id",
                  "lane_id",
                  "to_index"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "move_lane_plugin (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(move_lane_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/open_plugin_editor": {
      "post": {
        "description": "Open the mirrored native editor (GUI) for a track's plugin; frames and input then use the project's WebRTC editor channels. Call release_plugin_editor when done.",
        "operationId": "engine_open_plugin_editor",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "plugin_index"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "open_plugin_editor (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(open_plugin_editor)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/pause": {
      "post": {
        "description": "Pause playback.",
        "operationId": "engine_pause",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "pause (transport, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(pause)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/play": {
      "post": {
        "description": "Start playback.",
        "operationId": "engine_play",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "play (transport, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(play)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/play_range": {
      "post": {
        "description": "Play one time range once and stop exactly at its end (sample-accurate, in the engine; source audio stops at the end frame, effect tails drain like a pause). Give start_sec and end_sec, or start_frame and end_frame (project-timeline frames at the engine rate; sample_rate converts other rates). Any play/pause/seek/seek_and_play/loop change cancels the pending end; while it plays the range end wins over an enabled loop. get_transport (and get_transport_clock) report play_range {active, stop_reason, stopped_at_frame}.",
        "operationId": "engine_play_range",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "end_frame": {
                    "minimum": 1,
                    "type": "integer",
                    "x-unit": "project timeline frames (exclusive end)"
                  },
                  "end_sec": {
                    "exclusiveMinimum": 0,
                    "type": "number",
                    "x-unit": "seconds (exclusive end)"
                  },
                  "end_tick": {
                    "exclusiveMinimum": 0,
                    "type": "number",
                    "x-unit": "PPQ ticks (96 per quarter note), exclusive end"
                  },
                  "sample_rate": {
                    "maximum": 384000,
                    "minimum": 8000,
                    "type": "number",
                    "x-unit": "Hz"
                  },
                  "start_frame": {
                    "minimum": 0,
                    "type": "integer",
                    "x-unit": "project timeline frames (engine sample rate unless sample_rate)"
                  },
                  "start_sec": {
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "seconds"
                  },
                  "start_tick": {
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "PPQ ticks (96 per quarter note), through the tempo map"
                  },
                  "timing_map_revision": {
                    "description": "Optional guard: the engine must hold this timing-map revision (else 409 timing_map_revision_mismatch).",
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "play_range (transport, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(play_range)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/preview_pattern": {
      "post": {
        "description": "Preview a pattern or its note/step edits. repeat_count (1-64) loops the preview. arm_only=true prepares it without playing (armed_signature names the arm); armed_signature alone starts that prepared arm. preview_request_id orders starts and stops (a stop covers every id up to its own).",
        "operationId": "engine_preview_pattern",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "arm_only": {
                    "default": false,
                    "description": "Prepare (compile + resolve samples) without playing.",
                    "type": "boolean"
                  },
                  "armed_signature": {
                    "description": "Names the armed preview; without arm_only, starts that armed preview.",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "type": "string"
                  },
                  "bars": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "bpm": {
                    "type": "number",
                    "x-inferred": true
                  },
                  "gain": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "linear (1 = unity)"
                  },
                  "lead_sec": {
                    "type": "number",
                    "x-inferred": true,
                    "x-unit": "seconds"
                  },
                  "length_ticks": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "pattern": {
                    "type": "object",
                    "x-inferred": true
                  },
                  "phase_offset_sec": {
                    "type": "number",
                    "x-inferred": true,
                    "x-unit": "seconds"
                  },
                  "placement_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "ppq": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "preview_request_id": {
                    "description": "Increasing id per press; a stop with id N refuses starts <= N.",
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "repeat_count": {
                    "default": 1,
                    "maximum": 64,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "swing": {
                    "type": "number",
                    "x-inferred": true
                  }
                },
                "required": [
                  "project_id",
                  "pattern"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "preview_pattern (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(preview_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/preview_pattern_sample": {
      "post": {
        "description": "Audition a pattern sample.",
        "operationId": "engine_preview_pattern_sample",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "audio_file_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "duration_ms": {
                    "type": "integer",
                    "x-inferred": true,
                    "x-unit": "milliseconds"
                  },
                  "gain": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "linear (1 = unity)"
                  },
                  "pitch": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "audio_file_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "preview_pattern_sample (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(preview_pattern_sample)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/read_skill": {
      "post": {
        "description": "Load one producer skill card by name (see SKILLS in the prompt, e.g. genre-country, bass-808, humanize) before acting; no name = the list.",
        "operationId": "engine_read_skill",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "read_skill (compose, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(read_skill)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/refine_song": {
      "post": {
        "description": "Listen to every part + the mix and FIX what sounds off (wrong patch/sample, chords that don't ring, clipping, masking), re-listen up to 3 rounds; tracks optional.",
        "operationId": "engine_refine_song",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "fix": {
                    "x-inferred": true
                  },
                  "tracks": {
                    "type": "array",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "refine_song (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(refine_song)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/release_plugin_editor": {
      "post": {
        "description": "Release a track plugin's native editor and its resources.",
        "operationId": "engine_release_plugin_editor",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "plugin_index"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "release_plugin_editor (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(release_plugin_editor)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/remove_track": {
      "post": {
        "description": "Delete pattern/instrument tracks for real (placements, patterns, lane). tracks = names.",
        "operationId": "engine_remove_track",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "tracks": {
                    "type": "array",
                    "x-inferred": true
                  }
                },
                "required": [
                  "tracks"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "remove_track (compose, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(remove_track)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/remove_track_send": {
      "post": {
        "description": "Remove a lane's aux send to a bus (idempotent). The reply's previous is the removed send (null = there was none) for undo.",
        "operationId": "engine_remove_track_send",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "persist": {
                    "default": true,
                    "type": "boolean"
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "bus_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "remove_track_send (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(remove_track_send)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/rename_bus": {
      "post": {
        "description": "Rename a mixer bus.",
        "operationId": "engine_rename_bus",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "label": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "bus_id",
                  "label"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "rename_bus (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(rename_bus)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/rename_track": {
      "post": {
        "description": "Rename a track.",
        "operationId": "engine_rename_track",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "label": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "label"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "rename_track (timeline, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(rename_track)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/render_live_window": {
      "post": {
        "description": "Render a selected timeline window.",
        "operationId": "engine_render_live_window",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "end_sec": {
                    "type": "number",
                    "x-inferred": true,
                    "x-unit": "seconds"
                  },
                  "format": {
                    "x-inferred": true
                  },
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "start_sec": {
                    "type": "number",
                    "x-inferred": true,
                    "x-unit": "seconds"
                  }
                },
                "required": [
                  "project_id",
                  "start_sec",
                  "end_sec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "render_live_window (render, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-budgets": [
          {
            "bucket": "api_v1:export",
            "default": 60,
            "perSeconds": 3600
          }
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(render_live_window)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/render_share": {
      "post": {
        "description": "Start the canonical project share render.",
        "operationId": "engine_render_share",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "project_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "render_share (render, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-budgets": [
          {
            "bucket": "api_v1:export",
            "default": 60,
            "perSeconds": 3600
          }
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(render_share)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/replace_lane_instrument": {
      "post": {
        "description": "Replace the instrument (generator) of an existing instrument lane in place, keeping the lane, its patterns / notes / pattern clips, insert effects, sends and mix. instrument = a catalog id (GET /instruments/catalog); preset names a patch from its captured catalog; restore_state = the signed undoState a previous replacement answered (exact undo). Answers previousInstrument + undoState.",
        "operationId": "engine_replace_lane_instrument",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "instrument": {
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "preset": {
                    "x-inferred": true
                  },
                  "restore_state": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id",
                  "instrument"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "replace_lane_instrument (instruments, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(replace_lane_instrument)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/replace_stem_part": {
      "post": {
        "description": "Drop one part of a split song (drums, kick, snare, hats, bass, melody, keys, vocals...) so your part replaces it; with = replacement track.",
        "operationId": "engine_replace_stem_part",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "part": {
                    "description": "drums | kick | snare | hats | cymbals | toms | bass | melody | keys | guitar | vocals | instrumental, or a stem lane's name.",
                    "examples": [
                      "drums",
                      "kick",
                      "melody",
                      "Bass (stem)"
                    ],
                    "maxLength": 200,
                    "type": "string"
                  },
                  "remove": {
                    "default": false,
                    "description": "Delete the part's stem lane instead of muting it.",
                    "type": "boolean"
                  },
                  "source": {
                    "default": "backing",
                    "description": "Which split to act on: 'backing' or the source track's name.",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "with": {
                    "description": "The track or pattern name that plays instead, or 'nothing'.",
                    "maxLength": 200,
                    "type": "string"
                  }
                },
                "required": [
                  "part"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "replace_stem_part (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(replace_stem_part)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/restore_lane_plugin": {
      "post": {
        "description": "Re-create a lane plug-in under a given instance id with its saved state (undo of a delete): type, id, state_base64 + state_signature (hosted plug-ins: exactly the state and state_signature a delete_lane_plugin restore returned) or params / native_eq (native effects), bypassed, position, param_overrides (hosted: the delete's captured parameter values [{index, value_norm}], replayed after the state chunk for plug-ins whose chunk does not carry host parameters). Exactly how a saved chain row is restored on load; the saved chain row is written in the same operation.",
        "operationId": "engine_restore_lane_plugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bypassed": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "native_eq": {
                    "x-inferred": true
                  },
                  "open_editor": {
                    "x-inferred": true
                  },
                  "param_overrides": {
                    "description": "Hosted plug-in parameter values to replay after the state chunk (a delete's restore.params): [{index, value_norm}], normalized 0..1.",
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "index": {
                          "maximum": 65535,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "value_norm": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        }
                      },
                      "required": [
                        "index",
                        "value_norm"
                      ],
                      "type": "object"
                    },
                    "maxItems": 4096,
                    "type": "array"
                  },
                  "params": {
                    "type": "object",
                    "x-inferred": true
                  },
                  "position": {
                    "x-inferred": true
                  },
                  "preset": {
                    "x-inferred": true
                  },
                  "state_base64": {
                    "x-inferred": true
                  },
                  "state_signature": {
                    "x-inferred": true
                  },
                  "type": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id",
                  "type",
                  "id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "restore_lane_plugin (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(restore_lane_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/restore_lane_plugin_state": {
      "post": {
        "description": "Put a snapshot_lane_plugin state back into the SAME slot in place (no unload/reload): state_base64 + state_signature (hosted) or native params, host parameters, bypass. Pinned to expected_plugin_instance_id.",
        "operationId": "engine_restore_lane_plugin_state",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bypassed": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "expected_plugin_instance_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "expected_plugin_type": {
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "params": {
                    "type": "object",
                    "x-inferred": true
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "state_base64": {
                    "x-inferred": true
                  },
                  "state_signature": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id",
                  "plugin_index",
                  "state_base64",
                  "expected_plugin_instance_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "restore_lane_plugin_state (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(restore_lane_plugin_state)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/restore_original": {
      "post": {
        "description": "Put the song's original part back (part drums|kick|snare|hats|bass|melody|vocals): unmutes its stem, mutes the AI replacement.",
        "operationId": "engine_restore_original",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "part": {
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "restore_original (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(restore_original)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/restore_pattern": {
      "post": {
        "description": "Restore a soft-deleted pattern.",
        "operationId": "engine_restore_pattern",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "pattern_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "pattern_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "restore_pattern (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(restore_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/resync_patterns": {
      "post": {
        "description": "Recompile all persisted patterns and placements.",
        "operationId": "engine_resync_patterns",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bpm": {
                    "type": "number",
                    "x-inferred": true
                  },
                  "muted_placement_ids": {
                    "x-inferred": true
                  },
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "project_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "resync_patterns (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(resync_patterns)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/route_track_to_bus": {
      "post": {
        "description": "Route a track to a mixer bus.",
        "operationId": "engine_route_track_to_bus",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "bus_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "route_track_to_bus (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(route_track_to_bus)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/search_patches": {
      "post": {
        "description": "Search the REAL instrument patch catalog (LABS, Omnisphere, Splice INSTRUMENT, Xpand!2): query = what it should sound like ('natural acoustic grand piano'); role/track/plugin narrow it; producer words (dusty, glassy, twang) and avoid= must-nots rerank. Returns ~20 candidates (plugin, name, pack, category, tags, probe data, sound-index match), top 3 marked pick 1-3 with reason + next step, for YOU to choose from.",
        "operationId": "engine_search_patches",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "avoid": {
                    "x-inferred": true
                  },
                  "limit": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "plugin": {
                    "x-inferred": true
                  },
                  "query": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "role": {
                    "x-inferred": true
                  },
                  "track": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "query"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "search_patches (compose, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(search_patches)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/seek": {
      "post": {
        "description": "Move the playhead: seconds, or tick (96 PPQ, through the tempo map; optional timing_map_revision guard).",
        "operationId": "engine_seek",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "seconds": {
                    "x-inferred": true
                  },
                  "tick": {
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "PPQ ticks (96 per quarter note), through the tempo map"
                  },
                  "timing_map_revision": {
                    "description": "Optional guard: the engine must hold this timing-map revision (else 409 timing_map_revision_mismatch).",
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "seek (transport, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(seek)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/seek_and_play": {
      "post": {
        "description": "Move the playhead and start playback.",
        "operationId": "engine_seek_and_play",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "seconds": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "seconds"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "seek_and_play (transport, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(seek_and_play)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/send_midi": {
      "post": {
        "description": "Play notes on an instrument NOW (no timestamps; sent in order). Either one note {note 0-127, action note_on|note_off, velocity 0-1, channel 1-16} or events=[...] of the same shape (1-64). Optional lane_id. Empty/malformed input is rejected; CC is not supported here. Always pair note_on with note_off (or call all_notes_off).",
        "operationId": "engine_send_midi",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "enum": [
                      "note_on",
                      "note_off"
                    ],
                    "type": "string"
                  },
                  "channel": {
                    "maximum": 16,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "events": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "action": {
                          "enum": [
                            "note_on",
                            "note_off"
                          ],
                          "type": "string"
                        },
                        "channel": {
                          "default": 1,
                          "maximum": 16,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "note": {
                          "maximum": 127,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "velocity": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        }
                      },
                      "required": [
                        "action",
                        "note"
                      ],
                      "type": "object"
                    },
                    "maxItems": 64,
                    "minItems": 1,
                    "type": "array"
                  },
                  "instrument_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "note": {
                    "maximum": 127,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "velocity": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "required": [
                  "instrument_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "send_midi (instruments, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(send_midi)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/separate_stems": {
      "post": {
        "description": "Split the backing (or a track) into stems on the GPU (mode instruments|four_stems|drums|vocals; replace). Takes minutes; don't wait.",
        "operationId": "engine_separate_stems",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "force": {
                    "default": false,
                    "description": "Re-run a split that already exists for this source and mode.",
                    "type": "boolean"
                  },
                  "mode": {
                    "default": "instruments",
                    "description": "instruments = vocals/drums/bass/guitar/piano/other; four_stems = vocals/drums/bass/other; drums = kit pieces (on a whole song also vocals/bass/other); vocals = vocal + instrumental.",
                    "enum": [
                      "instruments",
                      "four_stems",
                      "drums",
                      "vocals"
                    ],
                    "type": "string"
                  },
                  "replace": {
                    "default": false,
                    "description": "true: when the stems land, mute the source and play the stems instead.",
                    "type": "boolean"
                  },
                  "source": {
                    "default": "backing",
                    "description": "'backing' (the song) or the name of an audio track, e.g. 'Drums (stem)'.",
                    "maxLength": 200,
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "separate_stems (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(separate_stems)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_bus_gain": {
      "post": {
        "description": "Set a mixer bus fader gain (linear 0-4, 1 = unity, 0.5 = about -6 dB). bus_id=master is the project's MASTER OUTPUT FADER: the whole project output after the master chain, before the output limiter, saved with the project unless persist=false (pass persist=false while sweeping, then a final call without it). It is NOT the Studio's Master strip, which is the user's local monitor volume (the strip only shows a non-unity engine fader as its 'Out' level). Current value: the master entry's gain in list_buses / get_pro_state mix.masterGain.",
        "operationId": "engine_set_bus_gain",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "gain": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "linear (1 = unity)"
                  },
                  "persist": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": [
                  "bus_id",
                  "gain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_bus_gain (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_gain)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_bus_muted": {
      "post": {
        "description": "Mute or unmute a mixer bus.",
        "operationId": "engine_set_bus_muted",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "muted": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [
                  "bus_id",
                  "muted"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_bus_muted (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_muted)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_bus_pan": {
      "post": {
        "description": "Pan a mixer bus output: pan -1 = hard left, 0 = center, 1 = hard right (equal-power balance after the bus fader). bus_id=master pans the project's master output (after the master fader, before the limiter). Live session state: re-centered when the project is reopened.",
        "operationId": "engine_set_bus_pan",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "pan": {
                    "maximum": 1,
                    "minimum": -1,
                    "type": "number",
                    "x-unit": "-1 hard left, 0 center, 1 hard right"
                  }
                },
                "required": [
                  "bus_id",
                  "pan"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_bus_pan (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_pan)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_bus_plugin_bypassed": {
      "post": {
        "description": "Bypass or enable a bus plugin (bus_id='master' for the master inserts).",
        "operationId": "engine_set_bus_plugin_bypassed",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "bypassed": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  }
                },
                "required": [
                  "bus_id",
                  "plugin_index",
                  "bypassed"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_bus_plugin_bypassed (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_plugin_bypassed)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_bus_plugin_mix": {
      "post": {
        "description": "Per-slot wet/dry mix of a bus plugin: 0 = dry, 1 = fully wet (default).",
        "operationId": "engine_set_bus_plugin_mix",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "mix": {
                    "type": "number",
                    "x-inferred": true
                  },
                  "persist": {
                    "default": true,
                    "type": "boolean"
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  }
                },
                "required": [
                  "bus_id",
                  "plugin_index",
                  "mix"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_bus_plugin_mix (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_plugin_mix)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_bus_plugin_parameter": {
      "post": {
        "description": "Set one normalized bus-plugin parameter (bus_id='master' for the master inserts).",
        "operationId": "engine_set_bus_plugin_parameter",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "parameter_index": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "value_norm": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "bus_id",
                  "plugin_index",
                  "parameter_index",
                  "value_norm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_bus_plugin_parameter (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_plugin_parameter)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_bus_soloed": {
      "post": {
        "description": "Solo or unsolo a mixer bus.",
        "operationId": "engine_set_bus_soloed",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "soloed": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [
                  "bus_id",
                  "soloed"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_bus_soloed (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_soloed)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_bus_stereo": {
      "post": {
        "description": "Bus stereo tools: separation -1..1, polarity_inverted, swap_lr (send at least one). Applied after the bus insert chain, before its fader; saved with the project unless persist=false. Not available on the master output.",
        "operationId": "engine_set_bus_stereo",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "persist": {
                    "default": true,
                    "type": "boolean"
                  },
                  "polarity_inverted": {
                    "x-inferred": true
                  },
                  "separation": {
                    "x-inferred": true
                  },
                  "swap_lr": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "bus_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_bus_stereo (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_stereo)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_clip_fade": {
      "post": {
        "description": "Fade a clip in/out (gain envelope). clip_id = dbTrackId, pattern:<placement-id> or backing:<backing-id>; length as duration_sec or bars.",
        "operationId": "engine_set_clip_fade",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bars": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "clip_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "direction": {
                    "x-inferred": true
                  },
                  "duration_sec": {
                    "exclusiveMinimum": 0,
                    "type": "number",
                    "x-unit": "seconds"
                  }
                },
                "required": [
                  "clip_id",
                  "direction"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_clip_fade (automation, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_clip_fade)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_clip_fades": {
      "post": {
        "description": "Set the fade-in and/or fade-out of ONE audio clip (FL Studio clip fade handles): fade_in / fade_out = {duration_sec, curve} (curve linear | equal_power | exp | log | s_curve) or null / duration 0 to clear that side; a side that is not sent is left alone. Non-destructive: a gain ramp at the clip edge, multiplied with clip gain. clip_id = the clip's durable id. Saved with the project and applied live.",
        "operationId": "engine_set_clip_fades",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "clip_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "fade_in": {
                    "x-inferred": true
                  },
                  "fade_out": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "clip_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_clip_fades (timeline, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_clip_fades)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_clip_gain": {
      "post": {
        "description": "Set an individual clip's gain (linear 0-4, 1 = unity). clip_id may be the clip's durable id (clipId from get_project). Saved with the project (project_tracks.volume: get_project clips[].volume, restored on reload) and applied live, unless persist=false (pass persist=false while sweeping, then a final call without it).",
        "operationId": "engine_set_clip_gain",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "clip_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "gain": {
                    "description": "Linear clip gain, 1 = unity (4 = +12 dB).",
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number"
                  },
                  "persist": {
                    "default": true,
                    "description": "false = engine only (a drag tick); send the final value with true.",
                    "type": "boolean"
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "clip_id",
                  "gain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_clip_gain (timeline, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_clip_gain)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_clip_muted": {
      "post": {
        "description": "Mute/unmute ONE audio clip (FL Studio-style clip mute): only that clip goes silent, the rest of its lane keeps playing. clip_id = the clip's durable id (clipId from get_project). Independent of the lane's M button (set_track_muted); a muted lane stays silent either way. Saved with the project and applied live.",
        "operationId": "engine_set_clip_muted",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "clip_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "muted": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [
                  "clip_id",
                  "muted"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_clip_muted (timeline, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_clip_muted)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_instrument_patch": {
      "post": {
        "description": "Re-voice an instrument track (any plugin): track + preset name, or role (bass_guitar|rhythm_guitar_sustained|rhythm_guitar_short|lead_guitar|clean_guitar|acoustic_guitar|organ|piano|keys|pad|strings|synth_lead|synth_bass|808), articulation sustained|short.",
        "operationId": "engine_set_instrument_patch",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "articulation": {
                    "x-inferred": true
                  },
                  "genre": {
                    "x-inferred": true
                  },
                  "instrument": {
                    "x-inferred": true
                  },
                  "preset": {
                    "x-inferred": true
                  },
                  "role": {
                    "x-inferred": true
                  },
                  "track": {
                    "x-inferred": true
                  },
                  "verify": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_instrument_patch (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_instrument_patch)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_labs_preset": {
      "post": {
        "description": "Select a LABS preset.",
        "operationId": "engine_set_labs_preset",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "instrument_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "preset": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "instrument_id",
                  "preset"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_labs_preset (instruments, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_labs_preset)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_lane_native_params": {
      "post": {
        "description": "Set a native effect instance's parameters in physical units ({key: value}); the engine clamps to the descriptor range and persists them (the Studio's native param grid).",
        "operationId": "engine_set_lane_native_params",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "instance_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "params": {
                    "type": "object",
                    "x-inferred": true
                  }
                },
                "required": [
                  "instance_id",
                  "lane_id",
                  "params"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_lane_native_params (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_lane_native_params)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_lane_plugin_bypassed": {
      "post": {
        "description": "Bypass or enable a lane plugin.",
        "operationId": "engine_set_lane_plugin_bypassed",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bypassed": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id",
                  "plugin_index",
                  "bypassed"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_lane_plugin_bypassed (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_lane_plugin_bypassed)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_lane_plugin_eq_band": {
      "post": {
        "description": "Edit one band (0-7) of a native EQ plug-in slot on a lane (the chain's EQ, e.g. the default EQ): enabled, frequency (Hz), gain_db, q and type. expected_plugin_instance_id / expected_plugin_type pin the slot (409 plugin_instance_mismatch otherwise).",
        "operationId": "engine_set_lane_plugin_eq_band",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "band": {
                    "description": "Band index 0-7.",
                    "maximum": 7,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "expected_plugin_instance_id": {
                    "description": "instance_id the slot must hold.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "expected_plugin_type": {
                    "description": "type_id the slot must hold.",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "frequency": {
                    "maximum": 20000.0,
                    "minimum": 20.0,
                    "type": "number",
                    "x-unit": "Hz"
                  },
                  "gain_db": {
                    "maximum": 18.0,
                    "minimum": -18.0,
                    "type": "number",
                    "x-unit": "dB"
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "persist": {
                    "default": true,
                    "description": "false = engine only (a drag tick); send the final value with true.",
                    "type": "boolean"
                  },
                  "plugin_index": {
                    "maximum": 64,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "q": {
                    "maximum": 18.0,
                    "minimum": 0.1,
                    "type": "number"
                  },
                  "type": {
                    "default": "bell",
                    "description": "Band shape (the Studio EQ's shape list).",
                    "enum": [
                      "bell",
                      "proportional_q",
                      "vintage_bell",
                      "band_shelf",
                      "low_shelf",
                      "resonant_low_shelf",
                      "vintage_low_shelf",
                      "high_shelf",
                      "resonant_high_shelf",
                      "vintage_high_shelf",
                      "low_pass",
                      "resonant_low_pass",
                      "high_pass",
                      "resonant_high_pass",
                      "baxandall_bass",
                      "baxandall_treble"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "lane_id",
                  "plugin_index",
                  "band",
                  "enabled",
                  "frequency",
                  "gain_db",
                  "q"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_lane_plugin_eq_band (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_lane_plugin_eq_band)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_lane_plugin_mix": {
      "post": {
        "description": "Per-slot wet/dry mix of a lane plugin (FL's slot Mix knob): 0 = dry (slot input), 1 = fully wet (default). Saved with the project unless persist=false.",
        "operationId": "engine_set_lane_plugin_mix",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "mix": {
                    "type": "number",
                    "x-inferred": true
                  },
                  "persist": {
                    "default": true,
                    "type": "boolean"
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id",
                  "plugin_index",
                  "mix"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_lane_plugin_mix (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_lane_plugin_mix)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_lane_plugin_parameter": {
      "post": {
        "description": "Set one normalized lane-plugin parameter.",
        "operationId": "engine_set_lane_plugin_parameter",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "parameter_index": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "value_norm": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id",
                  "plugin_index",
                  "parameter_index",
                  "value_norm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_lane_plugin_parameter (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_lane_plugin_parameter)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_lane_plugin_program": {
      "post": {
        "description": "Select a lane plugin program/preset.",
        "operationId": "engine_set_lane_plugin_program",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "program": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id",
                  "plugin_index",
                  "program"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_lane_plugin_program (plugins, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_lane_plugin_program)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_metronome": {
      "post": {
        "description": "Turn the metronome click on or off (on: bool); optional gain 0-1.",
        "operationId": "engine_set_metronome",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "gain": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "linear (1 = unity)"
                  },
                  "on": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "on"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_metronome (transport, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_metronome)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_omnisphere_patch": {
      "post": {
        "description": "Select an Omnisphere patch.",
        "operationId": "engine_set_omnisphere_patch",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "instrument_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "patch": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "instrument_id",
                  "patch"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_omnisphere_patch (instruments, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_omnisphere_patch)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_patch": {
      "post": {
        "description": "Put ONE exact patch from search_patches on an instrument track: track + family + patch_key copied from the candidate. Undoable.",
        "operationId": "engine_set_patch",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "family": {
                    "x-inferred": true
                  },
                  "patch_key": {
                    "x-inferred": true
                  },
                  "track": {
                    "x-inferred": true
                  }
                },
                "required": [
                  "track",
                  "family",
                  "patch_key"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_patch (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_patch)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_pattern_eq_band": {
      "post": {
        "description": "Edit one band (0-7) of a pattern placement's EQ: enabled, frequency (Hz, 20-20000), gain_db (-18..18), q (0.1-18) and type (bell, low_shelf, high_shelf, low_pass, high_pass, ...; see get_pattern_eq).",
        "operationId": "engine_set_pattern_eq_band",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "band": {
                    "description": "Band index 0-7.",
                    "maximum": 7,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "frequency": {
                    "maximum": 20000.0,
                    "minimum": 20.0,
                    "type": "number",
                    "x-unit": "Hz"
                  },
                  "gain_db": {
                    "maximum": 18.0,
                    "minimum": -18.0,
                    "type": "number",
                    "x-unit": "dB"
                  },
                  "persist": {
                    "default": true,
                    "description": "false = engine only (a drag tick); send the final value with true.",
                    "type": "boolean"
                  },
                  "placement_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "q": {
                    "maximum": 18.0,
                    "minimum": 0.1,
                    "type": "number"
                  },
                  "type": {
                    "default": "bell",
                    "description": "Band shape (the Studio EQ's shape list).",
                    "enum": [
                      "bell",
                      "proportional_q",
                      "vintage_bell",
                      "band_shelf",
                      "low_shelf",
                      "resonant_low_shelf",
                      "vintage_low_shelf",
                      "high_shelf",
                      "resonant_high_shelf",
                      "vintage_high_shelf",
                      "low_pass",
                      "resonant_low_pass",
                      "high_pass",
                      "resonant_high_pass",
                      "baxandall_bass",
                      "baxandall_treble"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "placement_id",
                  "band",
                  "enabled",
                  "frequency",
                  "gain_db",
                  "q"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_pattern_eq_band (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_pattern_eq_band)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_pattern_placement_gain": {
      "post": {
        "description": "Set a timeline pattern row's gain (a level, not a mute: use set_track_muted).",
        "operationId": "engine_set_pattern_placement_gain",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "gain": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "linear (1 = unity)"
                  },
                  "placement_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "placement_id",
                  "gain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_pattern_placement_gain (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_pattern_placement_gain)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_pattern_source_gain": {
      "post": {
        "description": "Set one source/channel gain within a pattern (a level, never a mute: muting a lane is set_track_muted).",
        "operationId": "engine_set_pattern_source_gain",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "gain": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "linear (1 = unity)"
                  },
                  "pattern_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "source_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "pattern_id",
                  "source_id",
                  "gain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_pattern_source_gain (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_pattern_source_gain)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_pattern_steps": {
      "post": {
        "description": "Step grid, many channels: channels=[{channel:'Kick',steps:[1,7,11],velocities?,sound_query?}]. Steps 1-16 repeat each bar; >16 = later bars. replace default true. New pattern placed at place_at_measure (default drop) x repeat, or fill_song.",
        "operationId": "engine_set_pattern_steps",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "audio_file_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "bars": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "channel": {
                    "maximum": 16,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "channels": {
                    "type": "array",
                    "x-inferred": true
                  },
                  "every_bar": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "fill_song": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "pattern_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "pattern_name": {
                    "x-inferred": true
                  },
                  "place": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "place_at_measure": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "repeat": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "replace": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "sound_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "sound_query": {
                    "x-inferred": true
                  },
                  "steps": {
                    "type": "array",
                    "x-inferred": true
                  },
                  "velocity": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "verify": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_pattern_steps (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_pattern_steps)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_project_loop_region": {
      "post": {
        "description": "Persist the project loop region. A bound left out keeps the stored one; enabled=true with no usable region is refused with loop_region_required.",
        "operationId": "engine_set_project_loop_region",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "end_sec": {
                    "type": "number",
                    "x-inferred": true,
                    "x-unit": "seconds"
                  },
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "start_sec": {
                    "type": "number",
                    "x-inferred": true,
                    "x-unit": "seconds"
                  }
                },
                "required": [
                  "project_id",
                  "enabled"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_project_loop_region (transport, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_project_loop_region)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_project_tempo": {
      "post": {
        "description": "Set the project BPM used by the timeline and patterns. Optional expected_revision (the timing-map revision you read) makes it a compare-and-swap: a moved map answers 409 timing_map_revision_conflict and nothing changes. mode=keep_time (default) keeps every clip at its time; mode=stretch_audio (Logic 'Adapt Project Tempo') time-stretches audio clips (pitch kept) and scales clip/pattern starts by old/new BPM so they stay on their bars (loop repeats, automation and the backing bar-ruler anchor follow): it returns a job (job_id, status) to poll with get_tempo_stretch_job; the audio, positions and tempo swap together when every render is done, and until then clip, placement and tempo changes on the project answer 409 tempo_stretch_in_progress (engine_reload_required=true = saved but the live engine still needs a reload: POST /api/v1/projects/{id}/engine:reload); undo_tempo_stretch restores the tempo, positions, automation and original audio exactly.",
        "operationId": "engine_set_project_tempo",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bpm": {
                    "maximum": 400,
                    "minimum": 20,
                    "type": "number"
                  },
                  "expected_revision": {
                    "x-inferred": true
                  },
                  "mode": {
                    "default": "keep_time",
                    "description": "keep_time = clips keep their time (default); stretch_audio = audio clips are time-stretched (pitch kept) and clip/pattern starts scale by old/new BPM so they stay on their bars (returns a job).",
                    "enum": [
                      "keep_time",
                      "stretch_audio"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "bpm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_project_tempo (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_project_tempo)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_speaker_muted": {
      "post": {
        "description": "Mute or unmute DAW speaker output.",
        "operationId": "engine_set_speaker_muted",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "muted": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [
                  "muted"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_speaker_muted (transport, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_speaker_muted)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_timing_map": {
      "post": {
        "description": "Atomically replace tempo and/or meter (whole lists) and merge pattern meters at expected_revision; returns the new revision.",
        "operationId": "engine_set_timing_map",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expected_revision": {
                    "description": "The revision you read (get_timing_map); 0 = never edited. Mismatch → code timing_map_revision_conflict.",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "idempotency_key": {
                    "description": "Retrying the same request with the same key returns the revision it produced (replayed: true).",
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "meter": {
                    "description": "Replaces the whole meter list (changes only on bar lines); [] resets to 4/4; omit to keep.",
                    "items": {
                      "additionalProperties": false,
                      "description": "Starts on a bar downbeat: bar (1-based) or tick (must be a bar line of the preceding meter).",
                      "properties": {
                        "bar": {
                          "minimum": 1,
                          "type": "integer"
                        },
                        "denominator": {
                          "enum": [
                            1,
                            2,
                            4,
                            8,
                            16,
                            32
                          ],
                          "type": "integer"
                        },
                        "groups": {
                          "description": "Accent grouping in denominator beats, summing to numerator (7/8 → [2,2,3]). Default: compound meters in threes (6/8 → [3,3]), otherwise the downbeat only.",
                          "items": {
                            "minimum": 1,
                            "type": "integer"
                          },
                          "type": "array"
                        },
                        "numerator": {
                          "maximum": 64,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "tick": {
                          "minimum": 0,
                          "type": "integer",
                          "x-unit": "PPQ ticks (96 per quarter note)"
                        }
                      },
                      "required": [
                        "numerator",
                        "denominator"
                      ],
                      "type": "object"
                    },
                    "maxItems": 256,
                    "type": "array"
                  },
                  "patterns": {
                    "additionalProperties": {
                      "oneOf": [
                        {
                          "type": "null"
                        },
                        {
                          "additionalProperties": false,
                          "properties": {
                            "meter": {
                              "items": {
                                "additionalProperties": false,
                                "description": "Starts on a bar downbeat: bar (1-based) or tick (must be a bar line of the preceding meter).",
                                "properties": {
                                  "bar": {
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  "denominator": {
                                    "enum": [
                                      1,
                                      2,
                                      4,
                                      8,
                                      16,
                                      32
                                    ],
                                    "type": "integer"
                                  },
                                  "groups": {
                                    "description": "Accent grouping in denominator beats, summing to numerator (7/8 → [2,2,3]). Default: compound meters in threes (6/8 → [3,3]), otherwise the downbeat only.",
                                    "items": {
                                      "minimum": 1,
                                      "type": "integer"
                                    },
                                    "type": "array"
                                  },
                                  "numerator": {
                                    "maximum": 64,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  "tick": {
                                    "minimum": 0,
                                    "type": "integer",
                                    "x-unit": "PPQ ticks (96 per quarter note)"
                                  }
                                },
                                "required": [
                                  "numerator",
                                  "denominator"
                                ],
                                "type": "object"
                              },
                              "minItems": 1,
                              "type": "array"
                            }
                          },
                          "required": [
                            "meter"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "description": "{pattern_id: {meter: [...]}} merged by id; null removes a pattern's meter (back to 4/4). Pattern bars count from the pattern start.",
                    "type": "object"
                  },
                  "pickup_ticks": {
                    "description": "Anacrusis before bar 1 (bar 0), shorter than one bar of meter[0]; 0 = none.",
                    "minimum": 0,
                    "type": "integer",
                    "x-unit": "PPQ ticks (96 per quarter note)"
                  },
                  "reason": {
                    "maxLength": 200,
                    "type": "string"
                  },
                  "tempo": {
                    "description": "Replaces the whole tempo list; [] resets to one constant segment at the current tick-0 bpm; omit to keep.",
                    "items": {
                      "additionalProperties": false,
                      "description": "Starts at exactly one of tick | beat | bar (the first segment must be at 0 / bar 1).",
                      "properties": {
                        "bar": {
                          "minimum": 1,
                          "type": "integer",
                          "x-unit": "1-based bar (downbeat) under the new meter"
                        },
                        "beat": {
                          "minimum": 0,
                          "type": "number",
                          "x-unit": "quarter-note beats, 0-based"
                        },
                        "bpm": {
                          "maximum": 522,
                          "minimum": 10,
                          "multipleOf": 0.001,
                          "type": "number",
                          "x-unit": "quarter notes per minute (never the denominator beat), 0.001 precision"
                        },
                        "curve": {
                          "default": "constant",
                          "description": "constant = step (holds until the next segment); linear = ramp. Aliases: step, ramp.",
                          "enum": [
                            "constant",
                            "linear"
                          ],
                          "type": "string"
                        },
                        "end_bpm": {
                          "description": "linear only: tempo reached at the next segment's start (default: next segment's bpm). Ramps are linear in beats.",
                          "maximum": 522,
                          "minimum": 10,
                          "multipleOf": 0.001,
                          "type": "number"
                        },
                        "tick": {
                          "minimum": 0,
                          "type": "integer",
                          "x-unit": "PPQ ticks (96 per quarter note)"
                        }
                      },
                      "required": [
                        "bpm"
                      ],
                      "type": "object"
                    },
                    "maxItems": 1024,
                    "type": "array"
                  }
                },
                "required": [
                  "expected_revision"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_timing_map (tempo, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_timing_map)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_track_eq_band": {
      "post": {
        "description": "Edit one band (0-7) of a track's lane EQ stage: enabled, frequency (Hz, 20-20000), gain_db (-18..18), q (0.1-18) and type (bell, low_shelf, high_shelf, low_pass, high_pass, ...; see get_lane_eq).",
        "operationId": "engine_set_track_eq_band",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "band": {
                    "description": "Band index 0-7.",
                    "maximum": 7,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "frequency": {
                    "maximum": 20000.0,
                    "minimum": 20.0,
                    "type": "number",
                    "x-unit": "Hz"
                  },
                  "gain_db": {
                    "maximum": 18.0,
                    "minimum": -18.0,
                    "type": "number",
                    "x-unit": "dB"
                  },
                  "persist": {
                    "default": true,
                    "description": "false = engine only (a drag tick); send the final value with true.",
                    "type": "boolean"
                  },
                  "q": {
                    "maximum": 18.0,
                    "minimum": 0.1,
                    "type": "number"
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "type": {
                    "default": "bell",
                    "description": "Band shape (the Studio EQ's shape list).",
                    "enum": [
                      "bell",
                      "proportional_q",
                      "vintage_bell",
                      "band_shelf",
                      "low_shelf",
                      "resonant_low_shelf",
                      "vintage_low_shelf",
                      "high_shelf",
                      "resonant_high_shelf",
                      "vintage_high_shelf",
                      "low_pass",
                      "resonant_low_pass",
                      "high_pass",
                      "resonant_high_pass",
                      "baxandall_bass",
                      "baxandall_treble"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "track_id",
                  "band",
                  "enabled",
                  "frequency",
                  "gain_db",
                  "q"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_track_eq_band (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_eq_band)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_track_gain": {
      "post": {
        "description": "Set a track fader gain (linear 0-4, 1 = unity; a level, not a mute: use set_track_muted). Saved with the project as the lane's volume (get_project lanes[].volume, restored on reload) unless persist=false (pass persist=false while sweeping, then a final call without it).",
        "operationId": "engine_set_track_gain",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "gain": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "linear (1 = unity)"
                  },
                  "persist": {
                    "default": true,
                    "type": "boolean"
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "gain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_track_gain (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_gain)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_track_muted": {
      "post": {
        "description": "Mute/unmute a whole lane exactly like its M button (lights M): audio, drums/pattern, instrument, or the backing. track_id = lane name or laneId ('backing' for the beat). ALWAYS use this for mute/unmute/silence — never a gain of 0.",
        "operationId": "engine_set_track_muted",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "muted": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "muted"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_track_muted (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_muted)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_track_pan": {
      "post": {
        "description": "Pan a track (lane): pan -1 = hard left, 0 = center, 1 = hard right. Mono sources use an equal-power -3 dB law compensated to unity at center (hard pan = +3 dB on one side); stereo sources use equal-power balance (only the opposite side is attenuated). Applied post-fader, before bus routing; saved with the project unless persist=false (pass persist=false while sweeping, then a final call without it).",
        "operationId": "engine_set_track_pan",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "pan": {
                    "maximum": 1,
                    "minimum": -1,
                    "type": "number",
                    "x-unit": "-1 hard left, 0 center, 1 hard right"
                  },
                  "persist": {
                    "default": true,
                    "type": "boolean"
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "pan"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_track_pan (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_pan)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_track_send": {
      "post": {
        "description": "Create or update a parallel aux send from a lane to a bus (in addition to the lane's output route): level linear 0-2 (1 = unity), pre_fader=true taps before the lane fader and pan (mute/solo still silence it), false (default for a new send) after them. Saved with the project unless persist=false. The reply's previous is the send before the write (null = none) for undo.",
        "operationId": "engine_set_track_send",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bus_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "level": {
                    "x-inferred": true
                  },
                  "persist": {
                    "default": true,
                    "type": "boolean"
                  },
                  "pre_fader": {
                    "x-inferred": true
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "bus_id",
                  "level"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_track_send (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_send)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_track_soloed": {
      "post": {
        "description": "Solo/unsolo a whole lane exactly like its S button (lights S): audio, drums/pattern, instrument, or the backing. track_id = lane name or laneId ('backing' for the beat).",
        "operationId": "engine_set_track_soloed",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "soloed": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "soloed"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_track_soloed (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_soloed)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_track_stereo": {
      "post": {
        "description": "Lane stereo tools (FL's insert stereo separation, phase invert and swap L/R): separation -1 (mono) .. 0 (neutral) .. +1 (side doubled), polarity_inverted (both channels), swap_lr. Send at least one; only the fields sent change. Applied after the insert chain, before the fader and pan; saved with the project unless persist=false.",
        "operationId": "engine_set_track_stereo",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "persist": {
                    "default": true,
                    "type": "boolean"
                  },
                  "polarity_inverted": {
                    "x-inferred": true
                  },
                  "separation": {
                    "x-inferred": true
                  },
                  "swap_lr": {
                    "x-inferred": true
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_track_stereo (mixer, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_stereo)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/set_transport_loop": {
      "post": {
        "description": "Switch the transport loop on or off. A bound left out keeps the current loop region (switching off keeps it; enabled=true alone loops that same region). Enabling with no usable region (end after start) is refused with loop_region_required and changes nothing.",
        "operationId": "engine_set_transport_loop",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "enabled": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "end_sec": {
                    "type": "number",
                    "x-inferred": true,
                    "x-unit": "seconds"
                  },
                  "end_tick": {
                    "exclusiveMinimum": 0,
                    "type": "number",
                    "x-unit": "PPQ ticks (96 per quarter note), exclusive end"
                  },
                  "start_sec": {
                    "type": "number",
                    "x-inferred": true,
                    "x-unit": "seconds"
                  },
                  "start_tick": {
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "PPQ ticks (96 per quarter note), through the tempo map"
                  },
                  "timing_map_revision": {
                    "description": "Optional guard: the engine must hold this timing-map revision (else 409 timing_map_revision_mismatch).",
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "enabled"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "set_transport_loop (transport, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_transport_loop)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/shift_clip": {
      "post": {
        "description": "Move a clip. Prefer start_measure (1-based bars) over start_ms.",
        "operationId": "engine_shift_clip",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "clip_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "start_measure": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "start_ms": {
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "milliseconds (project timeline)"
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "clip_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "shift_clip (timeline, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(shift_clip)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/snapshot_lane_plugin": {
      "post": {
        "description": "Snapshot one lane plug-in slot for an in-place restore (undo of an apply-preset): its opaque state (live chunk, else the saved row) with a state_signature, host parameters, bypass and a state hash. Served by a dedicated handler, not the raw route.",
        "operationId": "engine_snapshot_lane_plugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expected_plugin_instance_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "expected_plugin_type": {
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "plugin_index": {
                    "type": "integer",
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id",
                  "plugin_index"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "snapshot_lane_plugin (plugins, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(snapshot_lane_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/song_brief": {
      "post": {
        "description": "Read the project's song brief + change log; with update={genre, key, tempo, structure:[{section,bars,energy}], energy_curve, parts:{part:intent}, mix_balance:vocal_on_top|vocal_inside_beat, references, bans, notes} save what the USER stated or approved (why = their words).",
        "operationId": "engine_song_brief",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "log_entries": {
                    "x-inferred": true
                  },
                  "update": {
                    "x-inferred": true
                  },
                  "why": {
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "song_brief (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(song_brief)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/split_clip": {
      "post": {
        "description": "Split a clip at a timeline position (split_ms). Name the clip with clip_id (durable id) or give the lane as track_id; both halves stay on the same lane. Optional new_clip_id makes a retry idempotent. Returns the new right-half clip id.",
        "operationId": "engine_split_clip",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "clip_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "new_clip_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "split_ms": {
                    "type": "integer",
                    "x-inferred": true,
                    "x-unit": "milliseconds"
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "split_ms"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "split_clip (timeline, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(split_clip)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/start_recording": {
      "post": {
        "description": "Arm the engine and start a take as the calling user. The take's AUDIO is the client's own live-ingest microphone uplink (live_ingest_offer: WebRTC, client -> Mozart directly; no audio ever passes through this API): after this reply send {type:'take_start', take_id, mode:'record', song_start_sec: response.recording_start_position_seconds} on the uplink's data channel (lane_id = the record lane, else the user's own vocal lane), {type:'take_stop', take_id, song_end_sec} when done, then finalize_recording(take_id). Optional count-in: count_in_beats 1-8 clicks that many beats (the Studio's count-in) and the reply returns at the recording boundary with count_in {beat_samples, bpm, first_click_sample, recording_start_sample, ...}; seek_seconds parks the transport there first, start_transport=true rolls it on the boundary, bpm (20-400) sets the count-in tempo. Refused with recording_in_progress while anybody records on the engine. The engine keeps the arm while the uplink's keepalive is fresh or the caller polls get_transport_clock (60 s grace, 20 min cap).",
        "operationId": "engine_start_recording",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bpm": {
                    "description": "Count-in tempo; installed as the engine tempo when the map is constant.",
                    "maximum": 400,
                    "minimum": 20,
                    "type": "number"
                  },
                  "count_in_beats": {
                    "default": 0,
                    "description": "Metronome count-in beats before the take (0 = record at once). The reply returns at the recording boundary with count_in timing.",
                    "maximum": 8,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "project_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "seek_seconds": {
                    "description": "Park the (stopped) transport here before the count-in.",
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "seconds"
                  },
                  "start_transport": {
                    "default": false,
                    "description": "Start the transport on the recording boundary (needs count_in_beats > 0).",
                    "type": "boolean"
                  }
                },
                "required": [
                  "project_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "start_recording (recording, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(start_recording)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/start_stream": {
      "post": {
        "description": "Start the live audio stream.",
        "operationId": "engine_start_stream",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "format": {
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "start_stream (stream, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(start_stream)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/stem_status": {
      "post": {
        "description": "Progress of a stem split and the project's stem lanes (a pure read; it loads nothing).",
        "operationId": "engine_stem_status",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "stem_status (compose, read)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(stem_status)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/stop_all_pattern_previews": {
      "post": {
        "description": "Stop all pattern previews.",
        "operationId": "engine_stop_all_pattern_previews",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "preview_request_id": {
                    "description": "Increasing id per press; a stop with id N refuses starts <= N.",
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "stop_all_pattern_previews (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(stop_all_pattern_previews)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/stop_pattern_preview": {
      "post": {
        "description": "Stop one pattern preview. slot_id stops only that scene-launch slot; without it, your single preview and all of your scene layers.",
        "operationId": "engine_stop_pattern_preview",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "placement_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "preview_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "preview_request_id": {
                    "description": "Increasing id per press; a stop with id N refuses starts <= N.",
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "slot_id": {
                    "description": "Stop only this scene-launch slot.",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "stop_pattern_preview (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(stop_pattern_preview)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/stop_stream": {
      "post": {
        "description": "Stop the live audio stream.",
        "operationId": "engine_stop_stream",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "stop_stream (stream, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(stop_stream)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/swap_sound": {
      "post": {
        "description": "Swap ONE drum channel's sample (track + channel e.g. 'Hi Hat'; sound_query like 'bright natural hat'); keeps hits, never repeats a sample.",
        "operationId": "engine_swap_sound",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "channel": {
                    "maximum": 16,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "sound_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "sound_query": {
                    "x-inferred": true
                  },
                  "track": {
                    "x-inferred": true
                  },
                  "verify": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "swap_sound (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(swap_sound)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/transport_count_in": {
      "post": {
        "description": "Count in, then play: clicks count_in_beats (1-16) beats at the tempo (with the metronome off too) and starts the stopped transport exactly one beat after the last click, without arming a recording. seek_seconds parks the transport there first (0 = project start), bpm (20-400) sets the tempo first when the tempo map is constant. The reply returns on the boundary (transport_started, position_seconds, count_in_first_click_sample, count_in_beat_samples, transport_start_sample on the audio-device clock). Pause / play / seek during the count-in cancels it (count_in_cancelled). Refused with transport_rolling while playing and recording_in_progress while a take is armed.",
        "operationId": "engine_transport_count_in",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bpm": {
                    "description": "Count-in tempo; installed as the engine tempo when the map is constant.",
                    "maximum": 400,
                    "minimum": 20,
                    "type": "number"
                  },
                  "count_in_beats": {
                    "default": 4,
                    "description": "Count-in clicks before the transport starts.",
                    "maximum": 16,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "seek_seconds": {
                    "description": "Park the stopped transport here first (0 = the project start).",
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "seconds"
                  },
                  "wait": {
                    "default": true,
                    "description": "Answer on the boundary (transport_started=true); false answers at once.",
                    "type": "boolean"
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "transport_count_in (transport, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(transport_count_in)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/trim_clip": {
      "post": {
        "description": "Trim a clip's audible range. Omitted fields keep the clip's current value; audio_offset_sec is the trim-left into the source, duration_sec the audible length.",
        "operationId": "engine_trim_clip",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "audio_offset_sec": {
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "seconds into the source"
                  },
                  "clip_duration_sec": {
                    "type": "number",
                    "x-inferred": true,
                    "x-unit": "seconds"
                  },
                  "clip_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "duration_sec": {
                    "exclusiveMinimum": 0,
                    "type": "number",
                    "x-unit": "seconds"
                  },
                  "start_ms": {
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "milliseconds (project timeline)"
                  },
                  "track_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "track_id",
                  "clip_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "trim_clip (timeline, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(trim_clip)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/undo_tempo_stretch": {
      "post": {
        "description": "Undo a succeeded stretch_audio tempo change: the old tempo, every clip/pattern position and the original audio files come back exactly. 409 tempo_stretch_undo_conflict when the project was edited after the stretch.",
        "operationId": "engine_undo_tempo_stretch",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "job_id": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "job_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "undo_tempo_stretch (tempo, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(undo_tempo_stretch)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/undo_timing_map": {
      "post": {
        "description": "Undo the last tempo/meter map edit at expected_revision (writes a new revision restoring the previous content).",
        "operationId": "engine_undo_timing_map",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expected_revision": {
                    "description": "The revision you read (get_timing_map); 0 = never edited. Mismatch → code timing_map_revision_conflict.",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "idempotency_key": {
                    "description": "Retrying the same request with the same key returns the revision it produced (replayed: true).",
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "reason": {
                    "maxLength": 200,
                    "type": "string"
                  }
                },
                "required": [
                  "expected_revision"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "undo_timing_map (tempo, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(undo_timing_map)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/unload_lane": {
      "post": {
        "description": "Engine-only unload (does NOT delete; use remove_track).",
        "operationId": "engine_unload_lane",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "lane_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "unload_lane (timeline, destructive)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(unload_lane)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/update_pattern": {
      "post": {
        "description": "Edit a pattern's name, length, swing, channels, notes, steps, samples, instruments, or MIDI CC automation.",
        "operationId": "engine_update_pattern",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "pattern": {
                    "type": "object",
                    "x-inferred": true
                  },
                  "pattern_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "pattern_id",
                  "pattern"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "update_pattern (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(update_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/update_pattern_placement": {
      "post": {
        "description": "Move, trim, loop, rename, mute, solo, or reroute a pattern timeline clip. placement.windowMs: null clears the trim window (untrimmed, full extent).",
        "operationId": "engine_update_pattern_placement",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "placement": {
                    "type": "object",
                    "x-inferred": true
                  },
                  "placement_id": {
                    "type": "string",
                    "x-inferred": true
                  }
                },
                "required": [
                  "placement_id",
                  "placement"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "update_pattern_placement (patterns, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(update_pattern_placement)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/actions/write_pattern_notes": {
      "post": {
        "description": "MIDI for a track (channel): chords (fit to the song key; ['song'] follows its progression; keep_chords forces) and/or notes=[{pitch,bar,step,length_steps,velocity}]; style pad|stabs|arp. place_at_measure/repeat/fill_song, replace.",
        "operationId": "engine_write_pattern_notes",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bars": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "beats_per_chord": {
                    "x-inferred": true
                  },
                  "channel": {
                    "maximum": 16,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "chords": {
                    "type": "array",
                    "x-inferred": true
                  },
                  "fill_song": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "notes": {
                    "type": "array",
                    "x-inferred": true
                  },
                  "octave": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "pattern_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "pattern_name": {
                    "x-inferred": true
                  },
                  "place": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "place_at_measure": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "repeat": {
                    "type": "integer",
                    "x-inferred": true
                  },
                  "replace": {
                    "type": "boolean",
                    "x-inferred": true
                  },
                  "verify": {
                    "type": "boolean",
                    "x-inferred": true
                  }
                },
                "required": [],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "write_pattern_notes (compose, reversible)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(write_pattern_notes)",
        "x-freestyle-rate": "ai",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/midi": {
      "post": {
        "description": "Play notes on an instrument now (send_midi): one note {note, action, velocity, channel} or events[1-64] of that shape; instrument_id from the engine state. Malformed or empty input is 400 before the engine; always pair note_on with note_off (or allNotesOff).",
        "operationId": "sendEngineMidi",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane scoping the live session.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "enum": [
                      "note_on",
                      "note_off"
                    ],
                    "type": "string"
                  },
                  "channel": {
                    "maximum": 16,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "events": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "action": {
                          "enum": [
                            "note_on",
                            "note_off"
                          ],
                          "type": "string"
                        },
                        "channel": {
                          "default": 1,
                          "maximum": 16,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "note": {
                          "maximum": 127,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "velocity": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        }
                      },
                      "required": [
                        "action",
                        "note"
                      ],
                      "type": "object"
                    },
                    "maxItems": 64,
                    "minItems": 1,
                    "type": "array"
                  },
                  "instrument_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "lane_id": {
                    "type": "string",
                    "x-inferred": true
                  },
                  "note": {
                    "maximum": 127,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "velocity": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "required": [
                  "instrument_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Audition MIDI notes",
        "tags": [
          "engine_state"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(send_midi)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/midi:allNotesOff": {
      "post": {
        "description": "all_notes_off on one instrument (instrument_id).",
        "operationId": "engineMidiAllNotesOff",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane scoping the live session.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "instrument_id": {
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "instrument_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Silence an instrument",
        "tags": [
          "engine_state"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(all_notes_off)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/mix": {
      "get": {
        "description": "Master gain, per-lane gain / pan / mute / solo / bus and live bus gain / mute / solo from the engine (the get_pro_state mix summary, from list_tracks + list_buses), with mixRevision and ETag: \"mix-<n>\". Mozart bumps the revision on EVERY mix change from any source, including a Studio user's direct fader moves; send it back as If-Match (or expected_mix_revision) on mixer, bus and mix:apply writes. If-None-Match answers 304 while the mix is unchanged; waitEngineMix long-polls for a change. One engine round trip (GET /mix/state) on current engines; the X-Freestyle-Mix-Read response header says which path served it (state = one call, pair = an older engine's /tracks + /buses).",
        "operationId": "getEngineMix",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane scoping the live session.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineMix"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "engine_unavailable / target_not_loaded: the live session is not reachable."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get the live mix",
        "tags": [
          "engine_state"
        ],
        "x-freestyle-mcp-equivalent": "get_pro_state (mix)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/mix:apply": {
      "post": {
        "description": "Apply up to 64 mix changes as ONE step: lane gain / pan / mute / solo / bus routing, master gain / pan, bus gain / pan / mute / solo (bus_pan / master_pan are aliases of pan on bus / master changes). Mozart validates every change first and applies all of them or none, bumping the mix revision once. Guard it with If-Match: \"mix-<n>\" (or expected_mix_revision): if anyone changed the mix since your read, 412 mix_revision_conflict and nothing changes. The reply's response.undo_changes is the inverse batch (the prior values), so one more mix:apply with If-Match on the new ETag undoes the move. Persistence matches the single-control routes (lane gain as the lane's volume, lane pan and master gain unless persist=false; routing; lane mute/solo rows; bus and master pan are live only); each response.results[] row's db_persisted says whether that control was saved with the project. Pattern timeline lanes (track_type pattern) take mute/solo here too, exactly like setLaneMute / setLaneSolo: the lane's mixer track, its placements' mute/solo rows and the engine's realtime placement filter all change in the SAME mix revision (soloing one also unmutes it unless the change names muted, so results may carry an extra muted row). On an engine older than that, the placement filter follows as one extra revision step and patternRuntimeMuted.sameRevision is false. A legacy rack lane with placements but no mixer track is still 400 unsupported_mix_field. Bus targets and routing need Pro.",
        "operationId": "applyEngineMix",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane scoping the live session.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "changes": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "bus_id": {
                          "description": "target=bus: the bus. target=lane: route the lane to this bus ('master').",
                          "maxLength": 64,
                          "type": "string"
                        },
                        "bus_pan": {
                          "description": "target=bus only: alias of pan.",
                          "maximum": 1,
                          "minimum": -1,
                          "type": "number"
                        },
                        "gain": {
                          "maximum": 4,
                          "minimum": 0,
                          "type": "number"
                        },
                        "lane_id": {
                          "description": "Lane id from listLanes / getEngineMix db_track_id ('backing' = the beat).",
                          "maxLength": 64,
                          "type": "string"
                        },
                        "master_pan": {
                          "description": "target=master only: alias of pan.",
                          "maximum": 1,
                          "minimum": -1,
                          "type": "number"
                        },
                        "muted": {
                          "type": "boolean"
                        },
                        "pan": {
                          "description": "Lane pan (target lane), bus pan (target bus) or master pan (target master). Bus and master pan are live session state (not saved).",
                          "maximum": 1,
                          "minimum": -1,
                          "type": "number"
                        },
                        "persist": {
                          "default": true,
                          "description": "Lane pan / master gain: false = live only (while sweeping).",
                          "type": "boolean"
                        },
                        "soloed": {
                          "type": "boolean"
                        },
                        "target": {
                          "enum": [
                            "lane",
                            "master",
                            "bus"
                          ],
                          "type": "string"
                        },
                        "track_id": {
                          "description": "Engine track id (alternative to lane_id).",
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "target"
                      ],
                      "type": "object"
                    },
                    "maxItems": 64,
                    "minItems": 1,
                    "type": "array"
                  },
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "track_id": {
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "changes"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineMixApplyResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Apply a mix move atomically",
        "tags": [
          "engine_state"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(apply_mix)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/engine/mix:wait": {
      "get": {
        "description": "Long-poll: holds the request until Mozart's mix revision differs from if_none_match (or If-None-Match: \"mix-<n>\"), then answers the full mix exactly like getEngineMix; 304 (no body, same ETag) when wait_ms (<= 10000) passes unchanged. Any mix change counts, whoever made it: a Studio user's direct fader / mute / solo / routing moves, another agent, a session reload. Polls the engine every 250 ms without holding a database connection. At most 2 waits in flight per user and 32 per server (429 + Retry-After beyond); metered by the wait rate class, separate from the interactive bucket. 409 engine_update_required on an engine that predates mix revisions.",
        "operationId": "waitEngineMix",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane scoping the live session.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "The mixRevision you hold (or send If-None-Match: \"mix-<n>\").",
            "in": "query",
            "name": "if_none_match",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "How long to wait for a change.",
            "in": "query",
            "name": "wait_ms",
            "required": false,
            "schema": {
              "default": 10000,
              "maximum": 10000,
              "minimum": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineMix"
                }
              }
            },
            "description": "OK"
          },
          "304": {
            "description": "Unchanged for wait_ms (no body)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "engine_update_required, or engine_unavailable / target_not_loaded."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Wait for the live mix to change",
        "tags": [
          "engine_state"
        ],
        "x-freestyle-mcp-equivalent": "get_pro_state (mix)",
        "x-freestyle-rate": "wait",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/state": {
      "get": {
        "description": "Session, transport, tracks, live clips (with clip ids), buses, history status, patterns, placements and the mix summary in one read (MCP get_pro_state, minus the action catalog: see listEngineActions). Tracks, clips and mix rows of deleted lanes / clips (e.g. an undone import a live session still held) and of hidden empty legacy lanes are left out, so the lists match listLanes / listClips.",
        "operationId": "getEngineState",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane scoping the live session.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineState"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "engine_unavailable / target_not_loaded: the live session is not reachable."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get live engine state",
        "tags": [
          "engine_state"
        ],
        "x-freestyle-mcp-equivalent": "get_pro_state",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine/tracks": {
      "get": {
        "description": "The engine's loaded tracks/lanes (engine ids, db lane ids, labels, gain, pan, mute/solo, bus, clip_count) -- the list_tracks read, without tracks of deleted lanes / clips or hidden empty legacy lanes (see getEngineState).",
        "operationId": "listEngineTracks",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane scoping the live session.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "tracks": {
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "engine_unavailable / target_not_loaded: the live session is not reachable."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List live engine tracks",
        "tags": [
          "engine_state"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(list_tracks)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine:execute": {
      "post": {
        "description": "Run any catalog action by name: body {action, arguments}. Same rules as the typed engine_<name> operations: allowlisted pure reads need daw:read + viewer, every other action daw:write + editor (+ Idempotency-Key), destructive actions confirm=true, generative (compose) actions pay the AI guard and render actions the export budget. Unknown argument keys are 400. Engine error codes are preserved in the envelope.",
        "operationId": "executeEngineAction",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live session (defaults to the project's first take).",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Required true for destructive actions.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "description": "A name from listEngineActions.",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "arguments": {
                    "description": "The action's typed arguments.",
                    "type": "object"
                  },
                  "confirm": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "action"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Execute an engine action by name (generic)",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/engine:reload": {
      "post": {
        "description": "Rebuild the project's live engine session from what is saved (clips, lanes, plug-in chains, patterns) and answer once it is loaded: the fix for any result that says engine_reload_required=true (clips:batch, time-range-edits, move-to-lane, clip mute, sample edits, uploads). Uses the engine's /session/load exactly like opening the project, headless (no Studio tab needed). mode=full (default) bypasses the already-loaded fast path and rebuilds everything (every hosted plug-in is re-instantiated: up to ~90 s; listeners hear a short gap); mode=reconcile reuses a running session after pruning deleted clips and restoring missing ones (fast, but it does not rebuild plug-ins or fix a clip on the wrong lane). Idempotent: the result is the saved project whatever the starting state, and Idempotency-Key replays the first answer. Errors: 409 recording_in_progress (a take is being recorded; nothing reloaded, Retry-After), 409 studio_busy_on_other_project, 504 engine_timeout (the load may still finish: poll getEngineState, or retry), 502 engine_* when the engine is unreachable.",
        "operationId": "reloadEngineSession",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "mode": {
                    "default": "full",
                    "enum": [
                      "full",
                      "reconcile"
                    ],
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineReloadResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          },
          "504": {
            "description": "engine_timeout: the load did not answer within 90 s."
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Reload the live session from the saved project",
        "tags": [
          "engine"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/exports": {
      "get": {
        "description": "Rendered exports (newest first) and saves with a finished render, each with a one-hour signed downloadUrl. hasMore means older exports exist beyond limit.",
        "operationId": "listExports",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "maximum": 20,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "exports:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List exports",
        "tags": [
          "exports"
        ],
        "x-freestyle-mcp-equivalent": "list_exports",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "exports:read"
      },
      "post": {
        "description": "Render the full project mix (backing + every lane through its plugins) in the background, like the Studio's Export. Returns a job id for getExportStatus. Send an Idempotency-Key (or idempotency_key): a retry with the same key never starts a second export. Optional options (all default to today's output: 32-bit float WAV at the engine rate, whole song, 1 s tail): format wav | flac | mp3 | ogg; bit_depth (wav 16/24/32 float, flac 16/24); mp3_bitrate_kbps 96-320; ogg_quality -1..10; sample_rate 8000-192000; range \"song\" or {start_sec, end_sec}; tail_sec 0-10; stems true (FL's Split mixer tracks: one file per lane, the backing included, as ONE job that renders every lane once and uploads the files one after another; every other option applies to each file; muted lanes are skipped unless include_muted; buses are not split; the status lists each stem and, once complete, a signed link per stem). Unknown fields answer 400. While an export runs, a request with different options answers 409 export_in_progress carrying that job's id. Bounded by the app's export concurrency lease and the dedicated api_v1:export budget (60/hour per user by default).",
        "operationId": "exportMix",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bit_depth": {
                    "description": "wav: 16, 24 or 32 (float, default); flac: 16 or 24.",
                    "enum": [
                      16,
                      24,
                      32
                    ],
                    "type": "integer"
                  },
                  "format": {
                    "default": "wav",
                    "enum": [
                      "wav",
                      "flac",
                      "mp3",
                      "ogg"
                    ],
                    "type": "string"
                  },
                  "idempotency_key": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "include_muted": {
                    "default": false,
                    "description": "stems only: also export lanes that are muted (skipped by default).",
                    "type": "boolean"
                  },
                  "mp3_bitrate_kbps": {
                    "description": "mp3 only (CBR).",
                    "maximum": 320,
                    "minimum": 96,
                    "type": "integer"
                  },
                  "ogg_quality": {
                    "description": "ogg only.",
                    "maximum": 10,
                    "minimum": -1,
                    "type": "integer"
                  },
                  "range": {
                    "description": "Omit, null or \"song\" for the whole song; or {start_sec, end_sec} (e.g. the loop).",
                    "oneOf": [
                      {
                        "type": "null"
                      },
                      {
                        "enum": [
                          "song"
                        ],
                        "type": "string"
                      },
                      {
                        "additionalProperties": false,
                        "properties": {
                          "end_sec": {
                            "minimum": 0,
                            "type": "number"
                          },
                          "start_sec": {
                            "minimum": 0,
                            "type": "number"
                          }
                        },
                        "required": [
                          "start_sec",
                          "end_sec"
                        ],
                        "type": "object"
                      }
                    ]
                  },
                  "sample_rate": {
                    "description": "Default: the engine rate.",
                    "maximum": 192000,
                    "minimum": 8000,
                    "type": "integer"
                  },
                  "stems": {
                    "default": false,
                    "description": "Split mixer tracks: one file per lane (the backing included) instead of one mix. The other options apply to every file; the job status lists each stem.",
                    "type": "boolean"
                  },
                  "tail_sec": {
                    "default": 1.0,
                    "maximum": 10,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportJob"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Export the mix",
        "tags": [
          "exports"
        ],
        "x-freestyle-budgets": [
          {
            "bucket": "api_v1:export",
            "default": 60,
            "perSeconds": 3600
          }
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "export_mix",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/exports/jobs/{job_id}": {
      "get": {
        "description": "Poll an exportMix job (every few seconds). When complete it carries a one-hour signed downloadUrl.",
        "operationId": "getExportStatus",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportJob"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "exports:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get export status",
        "tags": [
          "exports"
        ],
        "x-freestyle-mcp-equivalent": "get_export_status",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "exports:read"
      }
    },
    "/projects/{project_id}/history": {
      "get": {
        "description": "The Studio undo log (Studio-recorded edits, with before/after state) and its cursor status (get_history + get_history_status). API edits are not logged here.",
        "operationId": "getEngineHistory",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional live-session scope.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineHistory"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "engine_unavailable / target_not_loaded: the live session is not reachable."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get the engine history",
        "tags": [
          "history"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_history, get_history_status)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/history:redo": {
      "post": {
        "description": "Move the Studio undo log's cursor forward once and return the entry (history_redo); the caller applies the entry's after state. Send an Idempotency-Key.",
        "operationId": "redoEngineHistory",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional live-session scope.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Redo (engine history)",
        "tags": [
          "history"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(history_redo)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/history:undo": {
      "post": {
        "description": "Move the Studio undo log's cursor back once and return the entry (history_undo). The log holds Studio-recorded edits only, and the CALLER applies the returned entry's before state (the engine does not); API edits are not in it -- undo those with the undo objects they return. Send an Idempotency-Key so a retry never steps twice.",
        "operationId": "undoEngineHistory",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional live-session scope.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Undo (engine history)",
        "tags": [
          "history"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(history_undo)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/instrument-lanes": {
      "post": {
        "description": "Create an instrument lane with a catalog instrument loaded and persisted, exactly like the Studio's instrument flow (execute_pro_action add_instrument_track with the instrument forced). preset names a patch from its captured catalog; role (and articulation) pick one by role instead. No audition renders and no notes: add musical content with the MIDI / pattern endpoints.",
        "operationId": "createInstrumentLane",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "articulation": {
                    "enum": [
                      "sustained",
                      "short"
                    ],
                    "type": "string"
                  },
                  "instrument_id": {
                    "description": "A creatable id from GET /instruments/catalog.",
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 80,
                    "type": "string"
                  },
                  "preset": {
                    "maxLength": 200,
                    "type": "string"
                  },
                  "role": {
                    "enum": [
                      "bass_guitar",
                      "rhythm_guitar_sustained",
                      "rhythm_guitar_short",
                      "lead_guitar",
                      "organ",
                      "piano",
                      "keys",
                      "pad",
                      "strings",
                      "synth_lead",
                      "synth_bass",
                      "808"
                    ],
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "instrument_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InstrumentLaneResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Create an instrument lane",
        "tags": [
          "instruments"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(add_instrument_track)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/interactive-sessions": {
      "post": {
        "description": "Open (or, with session_id, resume) the push channel for a manually operated editor. Call from your backend; hand only session_ticket to the browser, which opens websocket_url (/api/ws/mcp-session) and sends {\"type\":\"auth\",\"ticket\":...} first. mode=auto gives editors with daw:write a write session and everyone else a read-only one.",
        "operationId": "openInteractiveSession",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "mode": {
                    "default": "auto",
                    "enum": [
                      "auto",
                      "write",
                      "read"
                    ],
                    "type": "string"
                  },
                  "origin": {
                    "description": "Browser origin that will open the socket (an allowed origin of your OAuth client).",
                    "maxLength": 255,
                    "type": "string"
                  },
                  "session_id": {
                    "description": "Resume this open session.",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InteractiveSession"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Open an interactive editing session",
        "tags": [
          "realtime"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "open_interactive_session",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/key-analysis": {
      "post": {
        "description": "The app's deterministic key/scale detector (chroma vectors scored against major/minor key profiles over a bounded PCM window; no model, no AI budget). With track_id (a clip id): analyzes that take's audio as a job -- a result already computed for the same audio comes back at once (status succeeded), otherwise poll getKeyAnalysis with the jobId (Retry-After). Without track_id: the key detected when the backing was imported (410 uncached_backing_key_analysis_retired when it has none; analyze a take instead). Detection never changes the project: apply a result with PATCH /projects/{id} {key, scale}.",
        "operationId": "startKeyAnalysis",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "track_id": {
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyAnalysis"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "410": {
            "description": "uncached_backing_key_analysis_retired: the backing has no stored key."
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Detect the key of the backing or a take",
        "tags": [
          "projects"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "detect_project_key",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/key-analysis/{job_id}": {
      "get": {
        "description": "The job startKeyAnalysis returned: pending / running (Retry-After), succeeded with analysis {key, scale, confidence, detector}, or failed with error {code, message}.",
        "operationId": "getKeyAnalysis",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyAnalysis"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Poll a key analysis",
        "tags": [
          "projects"
        ],
        "x-freestyle-mcp-equivalent": "get_key_analysis_status",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:read"
      }
    },
    "/projects/{project_id}/lanes": {
      "get": {
        "description": "Lanes in display order with mute/solo/volume/pan, bus and plugin-chain summary. ETag = timeline revision.",
        "operationId": "listLanes",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Only lanes of this kind.",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "maxLength": 32,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Lane"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List lanes",
        "tags": [
          "lanes"
        ],
        "x-freestyle-mcp-equivalent": "get_project (lanes)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "projects:read"
      },
      "post": {
        "description": "Add an empty vocal or audio lane (a vocal lane gets the account's default effect chain). Returns track.id, usable as lane_id / track_id everywhere.",
        "operationId": "createLane",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "kind": {
                    "default": "vocal",
                    "enum": [
                      "vocal",
                      "audio"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 80,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaneWriteResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Create an empty lane",
        "tags": [
          "lane_management"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "create_track",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}": {
      "delete": {
        "description": "Soft-delete a lane and its takes. The result's deletedClipIds go back to :restore as clip_ids to bring back exactly those takes. When the project is open in a live engine session the lane (its mixer track and every clip on it) is also dropped from that session at once, so it stops sounding and leaves getEngineState / listEngineTracks; liveEngine says whether (no session is ever opened for this). This is how an API client undoes an audio import (uploadAudio / addAudioFromUrl made the lane) or a duplicateLane: the rows below the deleted lane move up one, closing the row it leaves (restoreLane reopens it), so a duplicate + delete leaves every other lane's order exactly as before. Deleting an instrument lane also removes, in the same operation, every pattern channel (sources[] entry of kind plugin / instrument whose laneId is this lane) with its notes and CC automation, so those patterns stay saveable; deletedPatternChannels names them ({patternId, channelId}) and restoreLane puts them back at their rack positions.",
        "operationId": "deleteLane",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "alreadyDeleted": {
                      "type": "boolean"
                    },
                    "deletedClipIds": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "deletedPatternChannels": {
                      "items": {
                        "properties": {
                          "channelId": {
                            "type": "string"
                          },
                          "patternId": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "patternId",
                          "channelId"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "laneId": {
                      "type": "string"
                    },
                    "liveEngine": {
                      "properties": {
                        "alreadyUnloaded": {
                          "type": "boolean"
                        },
                        "applied": {
                          "description": "true = the running engine session took the change (the next audio block hears it).",
                          "type": "boolean"
                        },
                        "attachedClipIds": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "reason": {
                          "description": "Why it was not applied live. The saved change still stands; the next session load plays it.",
                          "enum": [
                            "no_live_session",
                            "engine_rejected",
                            "engine_unreachable"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "applied"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "timelineRevision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Delete a lane",
        "tags": [
          "lane_management"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "delete_lane",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      },
      "patch": {
        "description": "Set the lane's name, color, volume (0..4), pan (-1 left .. 0 center .. 1 right), muted and/or soloed (persisted lane identity, like the Studio's lane header). A saved pan is also applied to an already-running engine session (livePan says whether); a project with no live session plays it from its next load. If-Match is the timeline revision (412 timeline_revision_conflict) -- or, for the mix fields, the mix revision: If-Match: \"mix-<n>\" (the getEngineMix ETag) or a body expected_mix_revision guards volume / pan / muted / soloed against the LIVE mix. Then the mix fields are applied to the running engine in one atomic compare-and-set (POST /mix/apply) before the lane row is saved: if the mix moved since your read, 412 mix_revision_conflict (details.currentMixRevision) and nothing changes; the reply carries mixRevision. A mix precondition needs a live session (409 engine_unavailable otherwise) and an engine with mix revisions (409 engine_update_required). Reply: changed (fields written), lane, timelineRevision; livePan {applied, reason?} when pan was sent; liveMix {applied: true} and mixRevision only on the mix-guarded path.",
        "operationId": "updateLane",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "color": {
                    "maxLength": 32,
                    "type": "string"
                  },
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "muted": {
                    "type": "boolean"
                  },
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "pan": {
                    "maximum": 1,
                    "minimum": -1,
                    "type": "number"
                  },
                  "soloed": {
                    "type": "boolean"
                  },
                  "volume": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaneWriteResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Rename / recolor / mix a lane",
        "tags": [
          "lane_management"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "set_lane_identity",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/automation": {
      "get": {
        "description": "The lane's own volume / pan envelopes plus those of every clip and pattern placement on it ('backing' = the backing lane).",
        "operationId": "listLaneAutomation",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "target_kind",
            "required": false,
            "schema": {
              "enum": [
                "clip_gain",
                "plugin_parameter",
                "lane_volume",
                "lane_pan"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "plugin_instance_id",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "stable_param_id",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "true = stored envelopes only (drops the default gain curves).",
            "in": "query",
            "name": "persisted",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/AutomationEnvelope"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List a lane's automation envelopes",
        "tags": [
          "automation"
        ],
        "x-freestyle-mcp-equivalent": "list_automation",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      },
      "post": {
        "description": "target {kind:'lane_volume'} or {kind:'lane_pan'} over the timeline window [startSec, startSec + durationSec]. Inside the window the curve replaces the lane's saved fader (gain = 4 * value: 0.25 = unity, 1 = +12 dB) or pan (pan = 2 * value - 1: 0 = hard left, 0.5 = center, 1 = hard right); outside it the saved fader / pan applies, and mute / solo still win. points' timeSec is relative to startSec (0..durationSec; endpoints are added when missing); defaultValue defaults to the lane's saved fader / pan. One envelope per lane per target: 409 automation_exists (details.envelope) otherwise. Edit it with the envelope routes (PUT also accepts startSec / durationSec). Playback never moves the lane's fader or bumps mix_revision. Buses / master have no automation yet.",
        "operationId": "createLaneAutomation",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "defaultValue": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "durationSec": {
                    "description": "Window length in seconds; points' timeSec must lie in 0..durationSec (endpoints are added when missing).",
                    "exclusiveMinimum": 0,
                    "maximum": 86400,
                    "type": "number"
                  },
                  "points": {
                    "items": {
                      "$ref": "#/components/schemas/AutomationPoint"
                    },
                    "maxItems": 250000,
                    "type": "array"
                  },
                  "startSec": {
                    "default": 0,
                    "description": "Timeline second the envelope starts at.",
                    "maximum": 86400,
                    "minimum": 0,
                    "type": "number"
                  },
                  "target": {
                    "$ref": "#/components/schemas/AutomationTarget"
                  },
                  "valueType": {
                    "enum": [
                      "continuous",
                      "discrete",
                      "boolean"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "target",
                  "durationSec"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationEnvelopeResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Create a lane volume / pan automation envelope",
        "tags": [
          "automation"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/effect-chain:copy": {
      "post": {
        "description": "Replace this lane's saved chain with a by-value copy of source_lane_id's (the Studio's Copy / Apply effect chain). Works between any two audio lanes (vocal, audio, guitar), legacy (identityVersion 1) or current; clips, identity and mix are untouched, and the destination reopens with the copied chain. When the project is loaded in the live engine the destination's live chain is swapped too (engine_applied=true); engine_reload_required=true means the copy is saved but the live engine still plays the old chain until the session reloads (engine_skipped lists plug-ins it could not instantiate).",
        "operationId": "copyLaneEffectChain",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "source_lane_id": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "source_lane_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "engine_applied": {
                      "type": "boolean"
                    },
                    "engine_reload_required": {
                      "type": "boolean"
                    },
                    "engine_skipped": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "laneId": {
                      "type": "string"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "sourceLaneId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "projectId",
                    "laneId",
                    "sourceLaneId",
                    "engine_applied",
                    "engine_reload_required"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Copy another lane's effect chain onto this lane",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "copy_lane_effect_chain",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/effects/{effect}/enabled": {
      "put": {
        "description": "Turn one module of the lane's Nectar instance on or off (undoable). effect: compressor | deesser | delay | dimension | eq | gate | reverb | saturation.",
        "operationId": "setEffectEnabled",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "effect",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "plugin_index": {
                    "maximum": 64,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "enabled"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Enable / disable a Nectar effect module",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "set_effect_enabled",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/effects/{effect}/wet": {
      "post": {
        "description": "Relative nudge (direction increase|decrease + amount) or absolute target_percent 0-100 (undoable).",
        "operationId": "adjustEffectWet",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "effect",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "amount": {
                    "type": "string"
                  },
                  "direction": {
                    "enum": [
                      "increase",
                      "decrease"
                    ],
                    "type": "string"
                  },
                  "plugin_index": {
                    "maximum": 64,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "target_percent": {
                    "maximum": 100,
                    "minimum": 0,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Adjust a Nectar effect module's wet mix",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "adjust_effect_wet",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/eq": {
      "get": {
        "description": "The lane's EQ as typed bands (band, enabled, type, type_index, frequency_hz, gain_db, q): eq is the lane EQ stage (setLaneEqBand without plugin_index, MCP set_track_eq_band); inserts are the native EQ plug-ins on its chain (e.g. the default EQ; setLaneEqBand with plugin_index); racks are native Effects racks' EQ stage. Read from the live engine; a lane that is not in the live session is answered from its saved state (live=false). Band types: bell, proportional_q, vintage_bell, band_shelf, low_shelf, resonant_low_shelf, vintage_low_shelf, high_shelf, resonant_high_shelf, vintage_high_shelf, low_pass, resonant_low_pass, high_pass, resonant_high_pass, baxandall_bass, baxandall_treble.",
        "operationId": "getLaneEq",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaneEq"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Read a lane's EQ bands",
        "tags": [
          "native_eq"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_lane_eq)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/eq/bands/{band}": {
      "post": {
        "description": "Write one band (0-7) of the lane's EQ in typed units: enabled, type, frequency_hz (20-20000), gain_db (-18..18), q (0.1-18). Without plugin_index it writes the lane EQ stage (MCP set_track_eq_band); with plugin_index it writes that native EQ plug-in slot (native-eq or native-effects; MCP set_lane_plugin_eq_band), and expected_plugin_instance_id / expected_plugin_type pin the slot: a mismatch is 409 plugin_instance_mismatch with the slot's current identity and nothing is written. persist=false writes the engine only (a drag tick). Band types: bell, proportional_q, vintage_bell, band_shelf, low_shelf, resonant_low_shelf, vintage_low_shelf, high_shelf, resonant_high_shelf, vintage_high_shelf, low_pass, resonant_low_pass, high_pass, resonant_high_pass, baxandall_bass, baxandall_treble. Out-of-range values are 400 invalid_argument (never clamped).",
        "operationId": "setLaneEqBand",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "band",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "expected_plugin_instance_id": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "expected_plugin_type": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "frequency_hz": {
                    "maximum": 20000.0,
                    "minimum": 20.0,
                    "type": "number"
                  },
                  "gain_db": {
                    "maximum": 18.0,
                    "minimum": -18.0,
                    "type": "number"
                  },
                  "persist": {
                    "default": true,
                    "description": "false = engine only (a drag tick); send the final value with true.",
                    "type": "boolean"
                  },
                  "plugin_index": {
                    "description": "A native EQ slot from listLanePlugins / getLaneEq inserts.",
                    "maximum": 64,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "q": {
                    "maximum": 18.0,
                    "minimum": 0.1,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "type": {
                    "default": "bell",
                    "enum": [
                      "bell",
                      "proportional_q",
                      "vintage_bell",
                      "band_shelf",
                      "low_shelf",
                      "resonant_low_shelf",
                      "vintage_low_shelf",
                      "high_shelf",
                      "resonant_high_shelf",
                      "vintage_high_shelf",
                      "low_pass",
                      "resonant_low_pass",
                      "high_pass",
                      "resonant_high_pass",
                      "baxandall_bass",
                      "baxandall_treble"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "enabled",
                  "frequency_hz",
                  "gain_db",
                  "q"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set one EQ band on a lane",
        "tags": [
          "native_eq"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_eq_band | set_lane_plugin_eq_band)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/gain": {
      "put": {
        "description": "Linear gain (1 = unity; the engine fader range is 0-4). A level, not a mute: use /mute to silence a lane. Saved with the project as the lane's volume (get_project lanes[].volume / mixExplicit; the beat's backing_gain), restored on reload, unless persist=false (response.lane_volume_persisted says whether).",
        "operationId": "setLaneGain",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "gain": {
                    "maximum": 16,
                    "minimum": 0,
                    "type": "number"
                  },
                  "persist": {
                    "default": true,
                    "description": "false while sweeping (live only), then a final call without it.",
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "gain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set a lane fader",
        "tags": [
          "mixer"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_gain)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/instrument": {
      "put": {
        "description": "Swap the instrument (generator) of an existing instrument lane in place, exactly like the Studio's Sound Library replace: the new instrument is loaded and saved first, then the old one is removed; a failed load leaves the lane as it was. The lane (id, name, color, row), its patterns, notes and pattern clips, its insert effects (EQ, effects), sends, fader, pan and mute/solo are kept; pattern channels keep playing the lane. instrument_id is a creatable id from GET /instruments/catalog (same plan rules as createInstrumentLane). preset names a patch from the new instrument's captured catalog (LABS without one gets its Soft Piano, like createInstrumentLane). The response names the previous instrument and an `undo` request (the previous instrument id plus its exact saved state as a signed restore_state): sending it puts the previous instrument back with its sound. Same instrument with no preset and no restore_state: 200 replaced:false, nothing changes. If-Match = the timeline revision; the answer carries the new one.",
        "operationId": "replaceLaneInstrument",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "instrument_id": {
                    "description": "A creatable id from GET /instruments/catalog.",
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "preset": {
                    "maxLength": 200,
                    "type": "string"
                  },
                  "restore_state": {
                    "properties": {
                      "signature": {
                        "description": "undoState.signature.",
                        "maxLength": 128,
                        "type": "string"
                      },
                      "state_base64": {
                        "description": "undoState.state_base64 of an earlier replacement.",
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "state_base64",
                      "signature"
                    ],
                    "type": "object"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "instrument_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaneInstrumentReplaceResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Replace an instrument lane's instrument",
        "tags": [
          "instruments"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(replace_lane_instrument)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/mute": {
      "put": {
        "description": "Exactly like the lane's M button (any lane kind; lane_id 'backing' for the beat).",
        "operationId": "setLaneMute",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "muted": {
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "muted"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Mute / unmute a lane",
        "tags": [
          "mixer"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_muted)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/pan": {
      "put": {
        "description": "pan -1 (hard left) .. 0 (center) .. 1 (hard right); post-fader, before bus routing. persist=false while sweeping, then a final call without it.",
        "operationId": "setLanePan",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "pan": {
                    "maximum": 1,
                    "minimum": -1,
                    "type": "number"
                  },
                  "persist": {
                    "default": true,
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "pan"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Pan a lane",
        "tags": [
          "mixer"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_pan)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugin-state": {
      "get": {
        "description": "Persisted (session-independent) lane chain: plugin keys, types, positions, bypass, state hashes, voice settings. Live values come from /plugins/{index}/state.",
        "operationId": "getSavedLanePluginState",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginSavedState"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Saved plugin snapshots of a lane",
        "tags": [
          "plugins"
        ],
        "x-freestyle-mcp-equivalent": "get_saved_plugin_state(lane_id)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins": {
      "get": {
        "description": "Plugins loaded on one lane of the live session (index, name, type_id, instance_id, bypassed, mix, hasEditor). hasEditor is false for native effects (format native / a native-* type_id): they have no editor window and the editor routes answer 409 editor_not_available for them. Host plug-in file paths are never returned.",
        "operationId": "listLanePlugins",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "lane_has_no_live_chain: the lane has no mixer track in the live engine session; the message says why (pattern lane not synced yet, instrument lane with no instrument, lane created while the session was open). Answered without waiting on the engine."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List a lane's live plugin chain",
        "tags": [
          "plugins"
        ],
        "x-freestyle-mcp-equivalent": "list_plugins",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:read"
      },
      "post": {
        "description": "Append a plug-in, named by catalog id, to the lane's chain: the Studio's own add (the engine loads its template, stamps an instance id and persists the chain row). Effects only (instruments: POST /projects/{project_id}/instrument-lanes); vocal suites (Nectar, AutoTune) are refused on instrument lanes. Host file paths are refused.",
        "operationId": "addLanePlugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bypassed": {
                    "description": "Create it bypassed.",
                    "type": "boolean"
                  },
                  "instance_id": {
                    "description": "Re-use this instance id (undo of a delete keeps automation and history references resolving), including a lane default's fixed id (native_eq_default). 409 plugin_instance_exists when the lane already has it.",
                    "maxLength": 64,
                    "pattern": "^[A-Za-z0-9_-]{8,64}$",
                    "type": "string"
                  },
                  "parameters": {
                    "additionalProperties": {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    },
                    "description": "Hosted plug-ins: host parameter values (index -> normalized 0..1) to re-apply after the state, from a delete's removed.restore.parameters.",
                    "maxProperties": 4096,
                    "type": "object"
                  },
                  "plugin_id": {
                    "description": "A catalog id from GET /plugins/catalog. Host file paths are refused.",
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "plugin_index": {
                    "description": "Alias of position.",
                    "maximum": 64,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "position": {
                    "description": "0-based slot to insert at (alias plugin_index); the plug-ins from that slot on move down one. Omitted or past the end = append.",
                    "maximum": 64,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "preset": {
                    "description": "Initial named preset.",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "state": {
                    "description": "Opaque saved state (base64) from a delete's removed.restore.state: the plug-in comes back with exactly those settings instead of its defaults. A hosted plug-in's state is accepted only with the state_signature the same delete returned (400 restore_state_invalid otherwise); a native effect's state is checked structurally.",
                    "maxLength": 4194304,
                    "type": "string"
                  },
                  "state_signature": {
                    "description": "removed.restore.stateSignature from the delete that returned this state.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "plugin_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/EngineActionResult"
                    },
                    {
                      "properties": {
                        "instanceId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "parametersRestored": {
                          "description": "Host parameters re-applied after the state chunk (the parameters a delete captured that the plug-in's chunk did not bring back); null when no parameters were sent.",
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "plugin": {
                          "$ref": "#/components/schemas/CatalogPlugin"
                        },
                        "pluginIndex": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "restoredState": {
                          "description": "true when the plug-in was created from the supplied state (undo of a delete), false when it starts from its template / preset.",
                          "type": "boolean"
                        },
                        "saved": {
                          "properties": {
                            "persisted": {
                              "description": "The lane's saved chain (get_project lanes[].pluginChain, what a reload restores) holds the instance.",
                              "type": "boolean"
                            },
                            "position": {
                              "description": "Its saved chain_position (= live slot).",
                              "type": [
                                "integer",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "persisted"
                          ],
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "413": {
            "description": "payload_too_large: state is larger than 4 MiB."
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Add a catalog plug-in to a lane",
        "tags": [
          "plugin_catalog"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(add_lane_plugin | restore_lane_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/instances/{instance_id}": {
      "delete": {
        "description": "Remove one plug-in instance by its instance id (listLanePlugins instance_id, or get_project lanes[].pluginChain[].pluginKey). The live slot is unloaded when it is live and the saved-chain row (what get_project shows and a reload restores) is removed in the same operation; a saved row whose plug-in is not live is removed from the saved chain alone. 409 plugin_instance_not_found when the lane has the instance neither live nor saved. DELETE is the confirmation.",
        "operationId": "deleteLanePluginInstance",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "instance_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LanePluginInstanceDeleteResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Remove a plug-in instance from a lane (live and saved chain)",
        "tags": [
          "plugin_catalog"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "execute_pro_action(delete_lane_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}": {
      "delete": {
        "description": "Remove the plug-in in one slot. The slot's instance id is read from the live chain in the same request and the removal targets that instance, so a stale index never removes another plug-in. expected_plugin_type pins the slot's catalog id too (412 precondition_failed on a mismatch). DELETE is the confirmation.",
        "operationId": "deleteLanePlugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Catalog id the slot must hold.",
            "in": "query",
            "name": "expected_plugin_type",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LanePluginDeleteResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Remove a plug-in from a lane",
        "tags": [
          "plugin_catalog"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "execute_pro_action(delete_lane_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/bypass": {
      "put": {
        "description": "Bypass or re-enable one lane plugin slot. Optional precondition: expected_plugin_instance_id / expected_plugin_type (from listLanePlugins) are compared with the slot's live identity before the write; a mismatch is 409 plugin_instance_mismatch with details.currentInstanceId / currentPluginType and nothing is written.",
        "operationId": "setLanePluginBypassed",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bypassed": {
                    "type": "boolean"
                  },
                  "expected_plugin_instance_id": {
                    "description": "instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "expected_plugin_type": {
                    "description": "type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "bypassed"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Bypass / re-enable a lane plugin",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "set_plugin_bypassed",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor": {
      "get": {
        "description": "Whether the slot's editor window is open/mirrored on the engine host.\n\n``editor_status.editor_target`` names what the mirror captures and feeds:\ninstance_id, window_id, editor_id, editor_bound_to_instance (the editor's\nprocessor IS the slot's instance), owner_matches, window/occlusion state,\nlast_revision and last_frame_stale.",
        "operationId": "getPluginEditorStatus",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "editor_not_available: the slot holds a native effect (format native / native-* type), which has no editor window. Final (not retryable); answered without an engine call."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Plugin editor window status",
        "tags": [
          "plugins"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_plugin_editor_status)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/frame": {
      "get": {
        "description": "The open editor window's current pixels as image/jpeg, for mirroring a native plug-in GUI (open it first with openPluginEditor). Poll it: pass the last X-Editor-Revision as if_revision (or If-None-Match) and an unchanged frame is 304 with no body; wait_ms (<= 500) holds the request until the frame changes: the engine captures right after each input event reaches the editor (sendPluginEditorPointer, sendPluginEditorScroll, sendPluginEditorKeys), so a client that re-requests as soon as a frame arrives gets one per input step, and the settled frame within ~50 ms of the last event. For frames pushed without HTTP round trips, subscribe on the monitoring WebRTC peer instead (Realtime: live plug-in editor frames). max_width scales the frame down (64-1280, default 640; JPEG quality 0.7). The revision hashes every pixel of the slot's own editor window (redrawn before each capture); if the plug-in's parameters moved but its pixels did not, X-Editor-Frame-Stale is 1 and the revision still changes. Response headers: ETag / X-Editor-Revision, X-Editor-Width, X-Editor-Height, X-Editor-Plugin-Instance-Id, X-Editor-Plugin-Type, X-Editor-Window-Id, X-Editor-Bound-To-Instance, X-Editor-Capture-Source, X-Editor-Frame-Stale. expected_plugin_instance_id refuses a frame of another instance (409 plugin_instance_mismatch). The bytes are proxied by the API (no direct Mozart URL is issued). Metered by the editor rate class, separate from the interactive bucket. 409 editor_not_open when no editor window is open; 409 target_not_loaded when the lane is not in the live session.",
        "operationId": "getPluginEditorFrame",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Scale the frame to at most this width.",
            "in": "query",
            "name": "max_width",
            "required": false,
            "schema": {
              "default": 640,
              "maximum": 1280,
              "minimum": 64,
              "type": "integer"
            }
          },
          {
            "description": "With if_revision: wait up to this long for a changed frame.",
            "in": "query",
            "name": "wait_ms",
            "required": false,
            "schema": {
              "default": 0,
              "maximum": 500,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "X-Editor-Revision of the frame you hold.",
            "in": "query",
            "name": "if_revision",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Refuse (409 plugin_instance_mismatch) if the slot's editor belongs to another instance.",
            "in": "query",
            "name": "expected_plugin_instance_id",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/jpeg": {
                "schema": {
                  "contentMediaType": "image/jpeg",
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "304": {
            "description": "Unchanged since if_revision / If-None-Match (no body)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "editor_not_open, target_not_loaded, plugin_instance_mismatch or editor_not_available (a native effect: no editor window; final, no engine call)."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Current plugin editor frame (JPEG)",
        "tags": [
          "plugins"
        ],
        "x-freestyle-rate": "editor",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/pointer": {
      "post": {
        "description": "One pointer phase (down / move / up) at normalized editor coordinates (0..1 of the frame's width/height). Send a gesture as down, moves, up with one gesture_id so knobs, sliders and drags keep their gesture. Coalesce moves client-side (<= ~20/s); a missed up leaves the gesture held, so always send it. down / move answer delivery=dispatched once the event reached a hit-testable editor view; up is confirmed by effect (a parameter or the editor's pixels changed since down), else ok is false with code input_unconfirmed. ok is also false for not_hit_testable / no_editor_view. Never retried by the server. Metered by the editor rate class. 409 editor_not_open when no editor window is open. For Studio latency (no HTTP round trip per event), send the same fields as editor.pointer on the monitoring peer's mozart-editor data channel instead (sendMonitorOffer peerGrant=write; /docs/realtime.html#fast-input).",
        "operationId": "sendPluginEditorPointer",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "alt_key": {
                    "type": "boolean"
                  },
                  "button": {
                    "maximum": 4,
                    "minimum": -1,
                    "type": "integer"
                  },
                  "buttons": {
                    "maximum": 31,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "ctrl_key": {
                    "type": "boolean"
                  },
                  "gesture_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "meta_key": {
                    "type": "boolean"
                  },
                  "phase": {
                    "enum": [
                      "down",
                      "move",
                      "up"
                    ],
                    "type": "string"
                  },
                  "pressure": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "shift_key": {
                    "type": "boolean"
                  },
                  "x_norm": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "y_norm": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "required": [
                  "phase",
                  "x_norm",
                  "y_norm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginEditorInputResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Send a pointer event to a plugin editor",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "editor",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/scroll": {
      "post": {
        "description": "A wheel event at normalized editor coordinates. delta_x / delta_y follow DOM WheelEvent units (delta_mode 0 pixels, 1 lines, 2 pages); positive delta_y scrolls down. Confirmed by effect like pointer up (ok false, code input_unconfirmed, when nothing changed). Metered by the editor rate class. 409 editor_not_open when no editor window is open.",
        "operationId": "sendPluginEditorScroll",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "alt_key": {
                    "type": "boolean"
                  },
                  "ctrl_key": {
                    "type": "boolean"
                  },
                  "delta_mode": {
                    "default": 0,
                    "enum": [
                      0,
                      1,
                      2
                    ],
                    "type": "integer"
                  },
                  "delta_x": {
                    "default": 0,
                    "maximum": 10000,
                    "minimum": -10000,
                    "type": "number"
                  },
                  "delta_y": {
                    "maximum": 10000,
                    "minimum": -10000,
                    "type": "number"
                  },
                  "meta_key": {
                    "type": "boolean"
                  },
                  "shift_key": {
                    "type": "boolean"
                  },
                  "x_norm": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "y_norm": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "required": [
                  "x_norm",
                  "y_norm",
                  "delta_y"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginEditorInputResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Send a scroll (wheel) event to a plugin editor",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "editor",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/type": {
      "post": {
        "description": "Type text (up to 256 characters, e.g. into a focused value field) or send one key by keycode (JUCE/ASCII key code: 13 Return, 27 Escape, 8 Backspace, 9 Tab, 127 Delete, printable ASCII, JUCE arrow/Home/End/PageUp/PageDown codes), with optional modifiers. Send text OR keycode. Keys go to the editor's focused control: click the value field first. The result is confirmed by effect (a parameter or the editor's pixels changed); otherwise ok is false with code input_unconfirmed. Metered by the editor rate class. 409 editor_not_open when no editor window is open.",
        "operationId": "sendPluginEditorKeys",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "alt_key": {
                    "type": "boolean"
                  },
                  "ctrl_key": {
                    "type": "boolean"
                  },
                  "keycode": {
                    "maximum": 65535,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "meta_key": {
                    "type": "boolean"
                  },
                  "shift_key": {
                    "type": "boolean"
                  },
                  "text": {
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginEditorInputResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Type text or a key into a plugin editor",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "editor",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor:close": {
      "post": {
        "description": "Close the slot's editor window.",
        "operationId": "closePluginEditor",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Close a plugin editor window",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(close_plugin_editor)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor:open": {
      "post": {
        "description": "Open the slot's editor window on the engine host and start mirroring it. plugin_index is the listLanePlugins index (on an instrument lane, 0 is the instrument).",
        "operationId": "openPluginEditor",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Open (mirror) a plugin editor window",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(open_plugin_editor)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor:release": {
      "post": {
        "description": "Release this caller's hold on the slot's editor window.",
        "operationId": "releasePluginEditor",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Release a plugin editor window",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(release_plugin_editor)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/mix": {
      "put": {
        "description": "FL's slot Mix knob: blends the slot's input (dry) with its output (wet), 0..1, default 1. 1 leaves the audio bit-identical; below 1 a plugin that reports latency has its dry copy delayed to match. Live, click-free; saved with the project unless persist=false. 409 engine_update_required on an engine without per-slot mix. Optional precondition: expected_plugin_instance_id / expected_plugin_type (from listLanePlugins) are compared with the slot's live identity before the write; a mismatch is 409 plugin_instance_mismatch with details.currentInstanceId / currentPluginType and nothing is written.",
        "operationId": "setLanePluginMix",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_plugin_instance_id": {
                    "description": "instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "expected_plugin_type": {
                    "description": "type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "mix": {
                    "description": "Wet/dry mix of the slot: 0 = dry (slot input), 1 = fully wet (default).",
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "persist": {
                    "default": true,
                    "description": "false while dragging (live only), then a final call without it.",
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "mix"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set a lane plugin slot's wet/dry mix",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "set_plugin_mix",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/parameters": {
      "get": {
        "description": "Every parameter of one lane slot with a host-stable id, name, unit, range (normalized 0..1, the unit setLanePluginParameter's value_norm takes; native slots add their physical range rawMin/rawMax/rawDefault, step, physicalValue and physicalDefault), step count when known, default and current value (normalized), and writeForms: the body fields the setter accepts (native: value_norm or value; hosted: value_norm). Read live from the engine the way MCP get_plugin_state does. Paginated; the slot summary is in plugin. A native EQ slot (parameterCount 0: its state is the curve) adds its typed bands as eq (same shape as getLaneEq). plugin.stateHash is only computed with include_state_hash=true (serialising a large plug-in's state is most of this read's cost). The first page reads the whole parameter set once; the following pages (cursor) of the same read are served from that snapshot for up to 15 s, so a paginated read is one consistent snapshot and costs one engine read.",
        "operationId": "listLanePluginParameters",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Also hash the plug-in's state (plugin.stateHash); slower on large plug-ins.",
            "in": "query",
            "name": "include_state_hash",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "busId": {
                      "type": "string"
                    },
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/PluginParameter"
                      },
                      "type": "array"
                    },
                    "eq": {
                      "$ref": "#/components/schemas/NativeEq"
                    },
                    "laneId": {
                      "type": "string"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    "plugin": {
                      "properties": {
                        "currentProgram": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "format": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "index": {
                          "type": "integer"
                        },
                        "instanceId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": "string"
                        },
                        "parameterCount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "programCount": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "stateHash": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "typeId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "type": "object"
                    },
                    "projectId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Discover a lane plug-in's parameters",
        "tags": [
          "plugin_catalog"
        ],
        "x-freestyle-mcp-equivalent": "get_plugin_state",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/parameters/{parameter_index}": {
      "put": {
        "description": "Set one parameter, as value_norm (0..1) OR value (physical units: dB, Hz, ms, ...). Send exactly one. listLanePluginParameters says which forms each parameter accepts (writeForms): native effects take both (value_norm maps onto the range with the same linear curve discovery reports, value is validated against min/max) and are written in physical units through the engine's native-params route; hosted (VST3) plug-ins take value_norm (their host exposes no unit mapping). The engine write is pinned to the slot (expected plugin type / instance id), so a stale index never lands on another plugin. expected_value_norm (the valueNorm you read) makes the write a compare-and-set: if the parameter moved by more than 1e-4 since (a Studio user turned the knob), 412 plugin_parameter_conflict (details.currentValueNorm) and nothing is written. A hosted write's reply carries the engine's own answer: applied=true when it confirms the write is applied at the next audio block (a few ms), also on an idle or bypassed plug-in, and editorFrameWoken=true when it woke the editor-frame stream so subscribers repaint at once. Both are false on an engine that only queued the write (it is being updated); read the parameter back to confirm. parameter is the host's read-back (valueNorm + display text). Optional precondition: expected_plugin_instance_id / expected_plugin_type (from listLanePlugins) are compared with the slot's live identity before the write; a mismatch is 409 plugin_instance_mismatch with details.currentInstanceId / currentPluginType and nothing is written.",
        "operationId": "setLanePluginParameter",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "in": "path",
            "name": "parameter_index",
            "required": true,
            "schema": {
              "maximum": 100000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_plugin_instance_id": {
                    "description": "instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "expected_plugin_type": {
                    "description": "type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "expected_value_norm": {
                    "description": "valueNorm you read (listLanePluginParameters / getLanePluginState). Mozart compares it with the live value (tolerance 1e-4) in the same step as the write; a mismatch is 412 plugin_parameter_conflict and nothing is written.",
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "value": {
                    "description": "Physical value (native effects).",
                    "type": "number"
                  },
                  "value_norm": {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set a lane plugin parameter",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "set_plugin_parameter",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/preset:apply": {
      "post": {
        "description": "Apply a named preset (e.g. a Nectar preset) to one lane plugin slot. Presets exist only for Nectar and Auto-Tune: any other plug-in is refused up front with 409 preset_not_supported (details.currentPluginType) and nothing is written. Optional precondition: expected_plugin_instance_id / expected_plugin_type (from listLanePlugins) are compared with the slot's live identity before the write; a mismatch is 409 plugin_instance_mismatch with details.currentInstanceId / currentPluginType and nothing is written.",
        "operationId": "applyLanePluginPreset",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_plugin_instance_id": {
                    "description": "instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "expected_plugin_type": {
                    "description": "type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "preset": {
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "preset"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Apply a named preset to a lane plugin",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "apply_plugin_preset",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/program": {
      "put": {
        "description": "Select a factory program on one lane plugin slot. Optional precondition: expected_plugin_instance_id / expected_plugin_type (from listLanePlugins) are compared with the slot's live identity before the write; a mismatch is 409 plugin_instance_mismatch with details.currentInstanceId / currentPluginType and nothing is written.",
        "operationId": "setLanePluginProgram",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_plugin_instance_id": {
                    "description": "instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "expected_plugin_type": {
                    "description": "type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "program": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "program"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Select a lane plugin program",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_lane_plugin_program)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/snapshot": {
      "get": {
        "description": "The slot's opaque state (live chunk, else the saved row; native effects as a JSON parameter map) with a state_signature, host parameters, bypass, preset and a state hash. Send it back to restoreLanePluginState to put the plug-in back exactly: the undo of an applied preset (no unload / reload). state is null with state_omitted=too_large above 4 MiB. expected_plugin_instance_id / expected_plugin_type pin the slot (409 plugin_instance_mismatch). The state is large (up to 4 MiB base64): read it only when you need it.",
        "operationId": "getLanePluginSnapshot",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "instance_id from listLanePlugins; 409 plugin_instance_mismatch if the slot holds another.",
            "in": "query",
            "name": "expected_plugin_instance_id",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "type_id from listLanePlugins; 409 plugin_instance_mismatch if the slot holds another.",
            "in": "query",
            "name": "expected_plugin_type",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LanePluginSnapshot"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "plugin_instance_mismatch: the slot holds a different instance or type."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Snapshot a lane plugin for an in-place restore",
        "tags": [
          "plugins"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(snapshot_lane_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/state": {
      "get": {
        "description": "Live parameters (index + normalized value) and state of one lane plugin slot. include_parameters=false skips the parameter list.",
        "operationId": "getLanePluginState",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "include_parameters",
            "required": false,
            "schema": {
              "default": true,
              "type": "boolean"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Snapshot a lane plugin's state",
        "tags": [
          "plugins"
        ],
        "x-freestyle-mcp-equivalent": "get_plugin_state",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/state:restore": {
      "post": {
        "description": "Put a getLanePluginSnapshot state back into the SAME slot without unloading it (the undo of an applied preset). expected_plugin_instance_id is required: if the slot now holds another instance, 409 plugin_instance_mismatch and nothing is written. A hosted plug-in's state is accepted only with the state_signature its snapshot (or a delete) returned, for the same plug-in type (400 restore_state_invalid otherwise); a native effect's state is checked structurally and applied as native parameters (its EQ curve is not restored). params (host parameter values) are replayed after the chunk; bypassed re-applies the bypass. state_hash_after is Mozart's hash of the state after the apply, to verify the restore landed (absent on engines that do not report it). Optional precondition: expected_plugin_instance_id / expected_plugin_type (from listLanePlugins) are compared with the slot's live identity before the write; a mismatch is 409 plugin_instance_mismatch with details.currentInstanceId / currentPluginType and nothing is written.",
        "operationId": "restoreLanePluginState",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bypassed": {
                    "type": "boolean"
                  },
                  "expected_plugin_instance_id": {
                    "description": "instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "expected_plugin_type": {
                    "description": "type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "params": {
                    "description": "snapshot.params (hosted plug-ins).",
                    "items": {
                      "properties": {
                        "index": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "value_norm": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        }
                      },
                      "required": [
                        "index",
                        "value_norm"
                      ],
                      "type": "object"
                    },
                    "maxItems": 4096,
                    "type": "array"
                  },
                  "state": {
                    "description": "snapshot.state (base64, at most 4 MiB).",
                    "minLength": 1,
                    "type": "string"
                  },
                  "state_signature": {
                    "description": "snapshot.state_signature.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "expected_plugin_instance_id",
                  "state"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "bypass_applied": {
                      "type": "boolean"
                    },
                    "engine_applied": {
                      "type": "boolean"
                    },
                    "instance_id": {
                      "type": "string"
                    },
                    "restored": {
                      "type": "boolean"
                    },
                    "saved": {
                      "description": "Mozart saves the slot's row itself shortly after the apply.",
                      "enum": [
                        "engine_debounced"
                      ],
                      "type": "string"
                    },
                    "state_hash_after": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "restored",
                    "instance_id",
                    "engine_applied"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "413": {
            "description": "state_too_large: state is larger than 4 MiB."
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Restore a lane plugin's state in place",
        "tags": [
          "plugins"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(restore_lane_plugin_state)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}:move": {
      "post": {
        "description": "Move the plug-in in one slot to to_index in the lane's chain: the Studio's drag reorder (Mozart /plugins/chain/{instance}/move). A slot's index IS its processing order, so this changes the sound; the engine renumbers every saved row's chain position from its new order, so the lane reopens in that order. The slot's instance id is read from the live chain in the same request and the move targets that instance, so a stale index never moves another plug-in; expected_plugin_type / expected_plugin_instance_id pin the slot too (412 precondition_failed on a mismatch). An instrument lane's generator stays ahead of its effects.",
        "operationId": "moveLanePlugin",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_index",
            "required": true,
            "schema": {
              "maximum": 64,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_plugin_instance_id": {
                    "description": "Instance id the slot must hold (412 otherwise).",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "expected_plugin_type": {
                    "description": "Catalog id the slot must hold (412 otherwise).",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "to_index": {
                    "maximum": 64,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "to_index"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/EngineActionResult"
                    },
                    {
                      "properties": {
                        "moved": {
                          "properties": {
                            "fromIndex": {
                              "type": "integer"
                            },
                            "instanceId": {
                              "type": "string"
                            },
                            "toIndex": {
                              "type": "integer"
                            },
                            "typeId": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "fromIndex",
                            "toIndex",
                            "instanceId"
                          ],
                          "type": "object"
                        },
                        "order": {
                          "description": "The lane's instance ids in their new processing order.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "persistedRows": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "moved"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Reorder a lane plug-in",
        "tags": [
          "plugin_catalog"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(move_lane_plugin)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/routing": {
      "put": {
        "description": "Send a lane's output to bus_id ('master' for the main mix). With If-Match /\nexpected_mix_revision the route is set by the engine's compare-and-set.",
        "operationId": "setLaneRouting",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bus_id": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  },
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "bus_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "lane": {
                      "type": "object"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Route a lane to a bus",
        "tags": [
          "buses"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "set_lane_routing",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/sends": {
      "get": {
        "description": "The lane's saved parallel aux sends (bus, linear level 0-2, pre/post fader). getEngineMix tracks[].sends is the live engine's view; getProject lanes[].sends the saved one.",
        "operationId": "listLaneSends",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "laneId": {
                      "type": "string"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "sends": {
                      "items": {
                        "$ref": "#/components/schemas/LaneSend"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "projectId",
                    "laneId",
                    "sends"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List a lane's aux sends",
        "tags": [
          "buses"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(list_track_sends)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/sends/{bus_id}": {
      "delete": {
        "description": "Remove the lane's send to bus_id (idempotent: no send is still 200 with previous null). If-Match / expected_mix_revision like other mix writes; undo re-creates the removed send.",
        "operationId": "deleteLaneSend",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaneSendResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Remove a lane aux send",
        "tags": [
          "buses"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "execute_pro_action(remove_track_send)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      },
      "put": {
        "description": "Send a parallel copy of the lane to bus_id (an existing non-master bus) in addition to its output route. level is linear 0-2 (1 = unity, 2 = +6 dB, like the faders), stored and reported at 6 decimals; pre_fader=true taps before the lane fader and pan (mute/solo still silence it), false after them; omitted keeps the send's tap (post-fader for a new send). The send sums into the bus before its chain, fader and delay compensation, live and in renders/exports. Saved with the project (project_lane_sends) for every project lane, placement lanes ('pattern-<id>') included, and copied by duplicateProject / duplicateLane, brought back by restoreLane / project saves. Refused: lane_id 'backing' (400 invalid_argument; the beat has no lane row), bus_id 'master', a bus not in the project (404). Bus-to-bus sends are not supported (buses sum to master only); at most 16 sends per lane. Guard with If-Match: \"mix-<n>\" / expected_mix_revision like other mix writes; the reply carries the new mixRevision and undo (the request that restores the previous state).",
        "operationId": "setLaneSend",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bus_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "level": {
                    "maximum": 2,
                    "minimum": 0,
                    "type": "number"
                  },
                  "pre_fader": {
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "level"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaneSendResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Create or update a lane aux send",
        "tags": [
          "buses"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_send)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/solo": {
      "put": {
        "description": "Exactly like the lane's S button (any lane kind; lane_id 'backing' for the beat).",
        "operationId": "setLaneSolo",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "soloed": {
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "soloed"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Solo / unsolo a lane",
        "tags": [
          "mixer"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_soloed)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}/stereo": {
      "put": {
        "description": "Stereo separation (-1..1), phase invert and swap L/R for one lane (FL's insert stereo separation and phase / swap buttons). Send at least one field; only the fields sent change. Applied after the insert chain (and native EQ), before the fader and pan, with click-free ramps; neutral values leave the audio bit-identical. Saved with the project unless persist=false (response.db_persisted says whether). 409 engine_update_required on an engine that predates stereo tools.",
        "operationId": "setLaneStereo",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "persist": {
                    "default": true,
                    "description": "false while sweeping (live only), then a final call without it.",
                    "type": "boolean"
                  },
                  "polarity_inverted": {
                    "description": "Phase invert (both channels).",
                    "type": "boolean"
                  },
                  "separation": {
                    "description": "Stereo separation, -1 (mono) .. 0 (neutral) .. +1 (side doubled); FL shows -100..+100 %. Applied after the insert chain, before the fader.",
                    "maximum": 1,
                    "minimum": -1,
                    "type": "number"
                  },
                  "swap_lr": {
                    "description": "Swap the left and right channels.",
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set a lane's stereo tools",
        "tags": [
          "mixer"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_track_stereo)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}:duplicate": {
      "post": {
        "description": "Copy a lane, placed directly below the source. An audio lane (kind vocal / audio / guitar; legacy or current track identity) copies its takes/clips, effect chain (plug-in states with new instance ids, native EQ such as an imported Channel EQ), clip gain / clip mute / automation, fader, pan, mute, solo and bus. An instrument lane (kind instrument, trackType plugin) copies its generator with its saved patch state and its effect chain (new instance ids) and, for every placed pattern that plays it, an INDEPENDENT pattern copy holding only that lane's notes, placed at the same positions on a new pattern row (patternRowLaneId). A pattern row (trackType pattern) copies each pattern it plays as an independent pattern ('<name> copy') and re-creates every pattern clip on the copy at identical geometry. Editing a copy never edits the source. 201 with laneId, clipIds {source clip id: copy id}, patternIds {source pattern id: copy id}, placementIds {source placement id: copy id}, name, the new timeline revision (ETag) and undo {method: DELETE, path}: deleteLane on the copy removes it, its clips, its pattern copies and pattern row and closes the gap it opened, so the project is exactly as before. When the project is open in a live engine session the copy is loaded into it at once (liveEngine.applied: generator, chain, clips, mix, pattern resync; no session is ever opened for this; otherwise the next session load plays it). Refused with 409: lane_kind_not_duplicable for the backing lane (the project's single beat slot); project_track_limit when the copy would exceed the project's clip limit.",
        "operationId": "duplicateLane",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "clipIds": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "{source clip id: copied clip id}",
                      "type": "object"
                    },
                    "laneId": {
                      "type": "string"
                    },
                    "liveEngine": {
                      "properties": {
                        "alreadyUnloaded": {
                          "type": "boolean"
                        },
                        "applied": {
                          "description": "true = the running engine session took the change (the next audio block hears it).",
                          "type": "boolean"
                        },
                        "attachedClipIds": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "reason": {
                          "description": "Why it was not applied live. The saved change still stands; the next session load plays it.",
                          "enum": [
                            "no_live_session",
                            "engine_rejected",
                            "engine_unreachable"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "applied"
                      ],
                      "type": "object"
                    },
                    "name": {
                      "type": "string"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "patternIds": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "{source pattern id: independent pattern copy id}",
                      "type": "object"
                    },
                    "patternRowLaneId": {
                      "description": "The pattern row the copied pattern clips sit on (the copy itself for a pattern row; a new row for an instrument lane's notes; null when no pattern clips were copied).",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "placementIds": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "description": "{source pattern clip id: copied pattern clip id}",
                      "type": "object"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "sourceLaneId": {
                      "type": "string"
                    },
                    "timelineRevision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "undo": {
                      "properties": {
                        "method": {
                          "enum": [
                            "DELETE"
                          ],
                          "type": "string"
                        },
                        "path": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "method",
                        "path"
                      ],
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Duplicate a lane",
        "tags": [
          "lane_management"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "duplicate_lane",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/lanes/{lane_id}:restore": {
      "post": {
        "description": "Undo a lane delete (clip_ids = the deletedClipIds from the delete). The lane returns to its original position relative to the other lanes, whatever order several deleted lanes are restored in (the row its delete closed is reopened in the same transaction). Pattern channels the delete removed (deletedPatternChannels) are put back at their rack positions with their notes (restoredPatternChannels). When the project is open in a live engine session the restored clips are loaded back into it (liveEngine.attachedClipIds); no session is ever opened for this.",
        "operationId": "restoreLane",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "lane_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "clip_ids": {
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 200,
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "laneId": {
                      "type": "string"
                    },
                    "liveEngine": {
                      "properties": {
                        "alreadyUnloaded": {
                          "type": "boolean"
                        },
                        "applied": {
                          "description": "true = the running engine session took the change (the next audio block hears it).",
                          "type": "boolean"
                        },
                        "attachedClipIds": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "reason": {
                          "description": "Why it was not applied live. The saved change still stands; the next session load plays it.",
                          "enum": [
                            "no_live_session",
                            "engine_rejected",
                            "engine_unreachable"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "applied"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "restoredPatternChannels": {
                      "items": {
                        "properties": {
                          "channelId": {
                            "type": "string"
                          },
                          "patternId": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "patternId",
                          "channelId"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "timelineRevision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Restore a deleted lane",
        "tags": [
          "lane_management"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "restore_lane",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/lanes:fromLatestVocal": {
      "post": {
        "description": "A new vocal lane that copies the effect chain of your most recent vocal lane.",
        "operationId": "createLaneFromLatestVocal",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {},
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaneWriteResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "New vocal lane with the latest vocal chain",
        "tags": [
          "lane_management"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "create_vocal_lane_from_latest",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/lanes:reorder": {
      "post": {
        "description": "lane_ids top to bottom, or rows [{laneIds, placementIds, backing}] for the Pro timeline's mixed rows.",
        "operationId": "reorderLanes",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "lane_ids": {
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 2048,
                    "type": "array"
                  },
                  "rows": {
                    "items": {
                      "additionalProperties": true,
                      "type": "object"
                    },
                    "maxItems": 2048,
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaneWriteResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Reorder lanes",
        "tags": [
          "lane_management"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "reorder_lanes",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/listen": {
      "post": {
        "description": "Render a short excerpt offline (the mix or up to 5 named tracks), measure it (levels, clipping, timing/key fit) and describe it. Default window: the first chorus/section, 8 s. Has its own per-user listen budget, the mcp:listen bucket shared with MCP (RATE_LIMIT_MCP_LISTEN_USER_PER_HOUR, 60/hour by default; 429 rate_limited).",
        "operationId": "listenToProject",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "length_sec": {
                    "default": 8,
                    "maximum": 30.0,
                    "minimum": 1,
                    "type": "number"
                  },
                  "question": {
                    "maxLength": 400,
                    "type": "string"
                  },
                  "start_sec": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "tracks": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "items": {
                          "type": "string"
                        },
                        "maxItems": 5,
                        "type": "array"
                      }
                    ],
                    "description": "Track names as shown on the timeline, or 'mix' (default)."
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListenReport"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "audio:listen"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Listen to the project",
        "tags": [
          "listen"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "listen_to_project",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "audio:listen"
      }
    },
    "/projects/{project_id}/listen-preview": {
      "get": {
        "description": "What the shared listen player shows: title, artist, cover, tempo/key, duration, the latest rendered mix, share and listen URLs. Same admission as the player (public, link, owner or collaborator), so no project role is pre-checked.",
        "operationId": "getProjectListenPreview",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListenPreview"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get the listen-page preview",
        "tags": [
          "listen"
        ],
        "x-freestyle-mcp-equivalent": "get_project_listen_preview",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "projects:read"
      }
    },
    "/projects/{project_id}/live-ingest/close": {
      "post": {
        "description": "Close the calling user's own live input (ingest) connection by clientId (the one sent with, or returned by, sendLiveIngestOffer). Only an uplink this user opened through the API is closed: never another member's microphone, whatever clientId is named. response.closed=false when there is no such uplink.",
        "operationId": "closeLiveIngest",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "clientId": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Close a live input connection",
        "tags": [
          "realtime"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(live_ingest_close)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/live-ingest/offer": {
      "post": {
        "description": "SDP offer carrying the microphone track (sendonly Opus) and the negotiated data channel id 200 (label mozart-live-ingest); returns Mozart's answer. Offer Opus as the only audio codec (the engine decodes Opus only). Audio flows client -> Mozart directly (TURN via getTurnCredentials), never through this API. The uplink is the calling user's microphone: Mozart re-checks the user's live write role, resolves the user's own vocal lane (or lane_id) and records takes as that user. Data channel (JSON text): {type:'keepalive', id} every 5 s (answered keepalive_ack); {type:'take_start', take_id, mode:'record', song_start_sec}; {type:'take_stop', take_id, song_end_sec}; Mozart answers take_started / take_stopped / lane_resolved. See startRecording / finalizeRecording for a take. Access is re-checked for the uplink's whole life, not only here: on every take_start / take_restart and every few seconds Mozart re-reads the user's write role and the app's grant. A refused take answers {type:'take_refused', take_id, code, status, closing} (codes: oauth_grant_revoked, project_write_forbidden, peer_delegation_write_required = this offer's access window ended, re-offer; permission_lookup_unavailable = retry; take_id_in_use; take_id_invalid) and a revoked or expired uplink is closed ({type:'uplink_revoked', code}). A take_id is single-use: one that already names a take on the engine (saved or not) is refused with take_id_in_use. Optional clientId (yours alone: uplinks are kept per user, so it never collides with another member's), lane_id (record lane), delay_ms, turn_credentials, profile. Requires a 48 kHz engine.",
        "operationId": "sendLiveIngestOffer",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "clientId": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "delay_ms": {
                    "type": "number"
                  },
                  "lane_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "offer": {
                    "properties": {
                      "sdp": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "sdp"
                    ],
                    "type": "object"
                  },
                  "profile": {
                    "maxLength": 80,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "turn_credentials": {
                    "type": "object"
                  }
                },
                "required": [
                  "offer"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Send the live input WebRTC offer",
        "tags": [
          "realtime"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(live_ingest_offer)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/live-ingest/status": {
      "get": {
        "description": "Connected ingest clients and take state.",
        "operationId": "getLiveIngestStatus",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get live input status",
        "tags": [
          "realtime"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_live_status)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/markers": {
      "get": {
        "description": "Time and loop markers sorted by tick (96 PPQ). ETag = revision; If-None-Match answers 304.",
        "operationId": "getMarkers",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectMarkers"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List the project's markers",
        "tags": [
          "markers"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      },
      "put": {
        "description": "Replaces the whole list (create, move, rename and delete are edits of it) at If-Match (or expected_revision) = the revision you read; 412 markers_revision_conflict (details.current = the current list) if it moved. At most 512 markers; ids unique; a loop marker has end_tick > tick. Returns the new revision (ETag) and undo = the previous list.",
        "operationId": "setMarkers",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_revision": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "markers": {
                    "items": {
                      "properties": {
                        "color": {
                          "description": "#rrggbb",
                          "type": "string"
                        },
                        "end_tick": {
                          "description": "Loop markers only; must be after tick.",
                          "minimum": 1,
                          "type": "integer"
                        },
                        "id": {
                          "description": "Optional on write; generated when absent.",
                          "maxLength": 64,
                          "type": "string"
                        },
                        "kind": {
                          "enum": [
                            "marker",
                            "loop"
                          ],
                          "type": "string"
                        },
                        "name": {
                          "maxLength": 64,
                          "type": "string"
                        },
                        "tick": {
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "tick"
                      ],
                      "type": "object"
                    },
                    "maxItems": 512,
                    "type": "array"
                  }
                },
                "required": [
                  "markers"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectMarkers"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Replace the project's markers",
        "tags": [
          "markers"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/master/gain": {
      "put": {
        "description": "Linear 0-4 (1 = unity) on the whole project output after the master chain, before the limiter; saved with the project unless persist=false.",
        "operationId": "setMasterGain",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "gain": {
                    "maximum": 4,
                    "minimum": 0,
                    "type": "number"
                  },
                  "persist": {
                    "default": true,
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "gain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set the master output fader",
        "tags": [
          "mixer"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_gain bus_id=master)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/master/pan": {
      "put": {
        "description": "pan -1 (hard left) .. 0 (center) .. 1 (hard right) on the whole project output, after the master fader and before the limiter: an equal-power balance (the far side tapered, smoothed). Bumps the mix revision. Live session state: not saved with the project (a reopened project starts centered).",
        "operationId": "setMasterPan",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_mix_revision": {
                    "description": "mix_revision you read (getEngineMix mixRevision / ETag \"mix-<n>\"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: \"mix-<n>\".",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "pan": {
                    "maximum": 1,
                    "minimum": -1,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "pan"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Pan the master output",
        "tags": [
          "mixer"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_bus_pan bus_id=master)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/monitor": {
      "delete": {
        "description": "Close the monitoring peer you opened with sendMonitorOffer (client_id = the one you sent): its audio and data channels stop at once. The project's live session stays loaded for the Studio and other listeners. closed=true when the engine tore the peer down; closed=false when it had no peer with that client_id (already gone, never opened, or the project moved to another engine since the offer), which is not an error. 502 webrtc_close_failed when the engine could not be reached: the peer may still be up, retry. client_id may be sent as a query parameter (preferred) or in a JSON body.",
        "operationId": "stopAudioMonitor",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "The client_id you sent with sendMonitorOffer (or send it in a JSON body).",
            "in": "query",
            "name": "client_id",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "clientId": {
                      "type": "string"
                    },
                    "closed": {
                      "description": "true: the engine tore your peer down. false: it had no peer with that client_id.",
                      "type": "boolean"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "trackId": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "audio:listen"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Stop live audio monitoring",
        "tags": [
          "realtime"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "stop_audio_monitor",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "audio:listen"
      },
      "patch": {
        "description": "Change the Opus bitrate of your monitoring peer live (target_bitrate_bps 48000-510000, capped by the peer's quality profile) and report your receiver's packet loss (packet_loss_pct 0-100; in-band FEC turns on with loss where the peer's quality profile allows it, see fecEnabled). quality_profile and low_latency are fixed per peer: send a new offer with the same client_id to change them (the old peer is replaced). 404 monitor_peer_not_found when no peer has that client_id.",
        "operationId": "setAudioMonitorQuality",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "client_id": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "packet_loss_pct": {
                    "default": 0,
                    "maximum": 100,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "target_bitrate_bps": {
                    "maximum": 510000,
                    "minimum": 48000,
                    "type": "integer"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "client_id",
                  "target_bitrate_bps"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "properties": {
                    "clientId": {
                      "type": "string"
                    },
                    "fecEnabled": {
                      "type": "boolean"
                    },
                    "lowLatency": {
                      "type": "boolean"
                    },
                    "maxBitrateBps": {
                      "type": "integer"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "packetLossPct": {
                      "type": "integer"
                    },
                    "prefillMs": {
                      "type": "number"
                    },
                    "qualityProfile": {
                      "type": "string"
                    },
                    "targetBitrateBps": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "audio:listen"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Change live monitor quality",
        "tags": [
          "realtime"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "set_audio_monitor_quality",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "audio:listen"
      },
      "post": {
        "description": "Open the project's live Mozart audio session (the server picks the engine) and return it with short-lived TURN credentials bound to that engine. Then send an SDP offer with sendMonitorOffer; stopAudioMonitor closes the peer. Works like opening the project in the Studio: a project with lanes but no takes, or a brand-new empty project, opens an empty session (track_id is then the first lane, or the project id). Requires editor access.",
        "operationId": "startAudioMonitor",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "device_id": {
                    "description": "Deprecated and ignored.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "projectId": {
                      "type": "string"
                    },
                    "session": {
                      "additionalProperties": true,
                      "type": "object"
                    },
                    "trackId": {
                      "type": "string"
                    },
                    "turnCredentials": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/TurnCredentials"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "audio:listen"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Start live audio monitoring",
        "tags": [
          "realtime"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "start_audio_monitor",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "audio:listen"
      }
    },
    "/projects/{project_id}/monitor/candidates": {
      "get": {
        "description": "Trickle ICE for a sendMonitorOffer sent with trickle=true: the engine's ICE candidates gathered after its answer (typically the TURN relay candidate that cellular and restrictive networks need), in gathering order, as {candidate, sdpMid} ready for RTCPeerConnection.addIceCandidate. Long-polls up to wait_ms (default 2000, max 3000) for a new candidate or the end of gathering. Pass response.next back as after; stop once complete=true or the peer is connected. Reading candidates never changes the peer. 404 monitor_peer_not_found when no peer of yours has that client_id. See /docs/realtime.html#monitor-latency.",
        "operationId": "getMonitorCandidates",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "The client_id you sent with sendMonitorOffer.",
            "in": "query",
            "name": "client_id",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "response.next of the previous call (0 the first time).",
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "default": 0,
              "maximum": 1000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "How long to wait for a new candidate.",
            "in": "query",
            "name": "wait_ms",
            "required": false,
            "schema": {
              "default": 2000,
              "maximum": 3000,
              "minimum": 0,
              "type": "integer",
              "x-unit": "milliseconds"
            }
          },
          {
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "candidates": {
                      "items": {
                        "properties": {
                          "candidate": {
                            "type": "string"
                          },
                          "sdpMid": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "clientId": {
                      "type": "string"
                    },
                    "complete": {
                      "description": "The engine finished gathering: no more candidates will come.",
                      "type": "boolean"
                    },
                    "next": {
                      "description": "Pass as after on the next call.",
                      "type": "integer"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "trackId": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "audio:listen"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get the monitoring peer's late ICE candidates",
        "tags": [
          "realtime"
        ],
        "x-freestyle-mcp-equivalent": "get_audio_monitor_candidates",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "audio:listen"
      }
    },
    "/projects/{project_id}/monitor/offer": {
      "post": {
        "description": "SDP offer for the project's live audio session (startAudioMonitor first); returns Mozart's SDP answer (the rick webrtc offer). Audio then flows Mozart -> client directly. By default the answer waits until the engine has a relay-capable ICE candidate (about 1-2 s, at most about 4 s), so restrictive networks connect. With trickle=true the engine answers as soon as it has a server-reflexive candidate (a few hundred ms) and response.trickle=true; then poll getMonitorCandidates and addIceCandidate each later candidate (the TURN relay one that cellular / restrictive networks need) until complete=true or the peer connects. response.trickle=false means the engine waited as before (nothing to fetch). See /docs/realtime.html#monitor-latency. The peer runs on the engine as this user: with daw:write and the owner/editor role the answer has peerGrant=write and the peer's data channels accept the Studio's fast input (mozart-control: transport_play/pause/seek, set_track_gain/muted/soloed, set_plugin_param, midi_note, midi_all_notes_off, sample_preview, sample_preview_release, live_hold; mozart-editor, negotiated id 100: editor.pointer/scroll/type), re-checked live against the role and the OAuth grant until peerGrantExpiresAt. Otherwise peerGrant=read (audio, clock, meters, editor frames). peerGrant is what the engine confirmed it applied; when it cannot confirm, the peer is closed and the call answers 502 peer_delegation_unconfirmed. An engine that is still being updated answers 503 engine_update_required before anything is sent to it (your existing peer keeps running; retry shortly). An account that never completed a sign-in the engine can re-check answers 403 peer_identity_unavailable. Once mozart-control is open the engine pushes engine_clock frames on it every 100 ms (getTransportClock fields + rtp_sync). Create the data channels before the offer so it has an m=application section; re-offer with the same client_id to renew (the old peer is replaced); stopAudioMonitor closes it and setAudioMonitorQuality changes its bitrate live. client_id is yours: it is scoped to your user, so it can never address another member's peer. Should the engine still report the id as another peer's, the call answers 409 webrtc_client_id_in_use: nothing was replaced, send the offer again with a new client_id. See /docs/realtime.html#fast-input.",
        "operationId": "sendMonitorOffer",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "client_id": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "device_id": {
                    "description": "Deprecated and ignored.",
                    "maxLength": 128,
                    "type": "string"
                  },
                  "low_latency": {
                    "type": "boolean"
                  },
                  "mode": {
                    "maxLength": 40,
                    "type": "string"
                  },
                  "quality_profile": {
                    "maxLength": 80,
                    "type": "string"
                  },
                  "sdp": {
                    "maxLength": 65536,
                    "minLength": 1,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "trickle": {
                    "default": false,
                    "description": "Trickle ICE: answer without waiting for the engine's TURN relay candidate; fetch later candidates with getMonitorCandidates.",
                    "type": "boolean"
                  },
                  "turn_credentials": {
                    "description": "username/credential/expiresAt from getTurnCredentials.",
                    "type": "object"
                  }
                },
                "required": [
                  "sdp"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "properties": {
                    "answer": {
                      "properties": {
                        "sdp": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "clientId": {
                      "type": "string"
                    },
                    "mode": {
                      "type": "string"
                    },
                    "peerGrant": {
                      "description": "write: the peer's data channels accept transport, mixer, plug-in parameter and plug-in editor input as this user. read: audio, clock, meters and editor frames only.",
                      "enum": [
                        "write",
                        "read"
                      ],
                      "type": "string"
                    },
                    "peerGrantConfirmed": {
                      "description": "Always true here: an API offer is only answered once the engine confirmed the grant it applied.",
                      "type": "boolean"
                    },
                    "peerGrantExpiresAt": {
                      "description": "Unix seconds when channel writes stop; re-offer with the same client_id to renew.",
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "qualityProfile": {
                      "type": "string"
                    },
                    "trickle": {
                      "description": "true: the engine answered without waiting for its relay candidate (you sent trickle=true); fetch the rest with getMonitorCandidates. false: the answer already carries every candidate the engine waited for.",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "audio:listen"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Send the monitoring WebRTC offer",
        "tags": [
          "realtime"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "rick_webrtc_offer",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "audio:listen"
      }
    },
    "/projects/{project_id}/pattern-placements": {
      "get": {
        "description": "Live pattern clips on the timeline ordered by start. Filters: pattern_id, lane_id. ETag = timeline revision (If-None-Match answers 304).",
        "operationId": "listPatternPlacements",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Only placements of this pattern.",
            "in": "query",
            "name": "pattern_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Only placements on this lane.",
            "in": "query",
            "name": "lane_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/PatternPlacement"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List pattern placements",
        "tags": [
          "patterns"
        ],
        "x-freestyle-mcp-equivalent": "get_pro_state (patternPlacements)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      },
      "post": {
        "description": "placement.patternId is required; without laneId a pattern lane is created.",
        "operationId": "createPatternPlacement",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "placement": {
                    "properties": {
                      "busId": {
                        "maxLength": 64,
                        "type": "string"
                      },
                      "displayOrder": {
                        "description": "Timeline row order. Omitted = unchanged.",
                        "maximum": 1000000,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "durationMs": {
                        "minimum": 1,
                        "type": "integer"
                      },
                      "laneId": {
                        "maxLength": 64,
                        "type": "string"
                      },
                      "loopDurationMs": {
                        "minimum": 1,
                        "type": "integer"
                      },
                      "loopPhaseMs": {
                        "description": "Start phase inside one loop unit: 0 <= loopPhaseMs < loopDurationMs (or durationMs).",
                        "minimum": 0,
                        "type": "integer"
                      },
                      "muted": {
                        "type": "boolean"
                      },
                      "name": {
                        "maxLength": 255,
                        "type": "string"
                      },
                      "offsetMs": {
                        "minimum": 0,
                        "type": "integer"
                      },
                      "patternId": {
                        "maxLength": 64,
                        "type": "string"
                      },
                      "repeatCount": {
                        "minimum": 1,
                        "type": "integer"
                      },
                      "soloed": {
                        "type": "boolean"
                      },
                      "startMs": {
                        "minimum": 0,
                        "type": "integer"
                      },
                      "windowMs": {
                        "description": "Audible window length (right trim). null clears the trim window: the placement plays its full extent again (Trim Undo). Omit it to keep the stored window.",
                        "minimum": 1,
                        "type": [
                          "integer",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "placement"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternWriteResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Place a pattern on the timeline",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(create_pattern_placement)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/pattern-placements/{placement_id}": {
      "delete": {
        "description": "Soft-delete a pattern clip from the timeline. The response carries `undo`: `{op: \"restore\", placementId, before, restoreToken, timelineRevision}`, where `before` is the canonical stored placement (every persisted field plus its clip automation) and `restoreToken` is a signed token (24 h, bound to this deletion and your account). POST `before` and `restoreToken` to `:restore` to bring back the same placement with its durable id.",
        "operationId": "deletePatternPlacement",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "placement_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternPlacementDeleteResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Delete a pattern placement",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "execute_pro_action(delete_pattern_placement)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      },
      "get": {
        "description": "One live pattern placement. ETag = timeline revision.",
        "operationId": "getPatternPlacement",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "placement_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternPlacement"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get a pattern placement",
        "tags": [
          "patterns"
        ],
        "x-freestyle-mcp-equivalent": "get_pro_state (patternPlacements)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      },
      "patch": {
        "description": "Move, trim, loop, rename, mute, solo, re-phase (loopPhaseMs, 0 <= phase < loop length) or reroute a pattern clip. Omitted fields keep their stored value (busId defaults to master when omitted, as in the Studio). Trim Undo: windowMs: null clears the trim window and restores the untrimmed placement (send offsetMs: 0 too to drop a left trim, or the before-trim values you read); the engine pattern schedule is resynced. Guarded by If-Match (timeline revision, 412 timeline_revision_conflict).",
        "operationId": "updatePatternPlacement",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "placement_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "placement": {
                    "properties": {
                      "busId": {
                        "maxLength": 64,
                        "type": "string"
                      },
                      "displayOrder": {
                        "description": "Timeline row order. Omitted = unchanged.",
                        "maximum": 1000000,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "durationMs": {
                        "minimum": 1,
                        "type": "integer"
                      },
                      "laneId": {
                        "maxLength": 64,
                        "type": "string"
                      },
                      "loopDurationMs": {
                        "minimum": 1,
                        "type": "integer"
                      },
                      "loopPhaseMs": {
                        "description": "Start phase inside one loop unit: 0 <= loopPhaseMs < loopDurationMs (or durationMs).",
                        "minimum": 0,
                        "type": "integer"
                      },
                      "muted": {
                        "type": "boolean"
                      },
                      "name": {
                        "maxLength": 255,
                        "type": "string"
                      },
                      "offsetMs": {
                        "minimum": 0,
                        "type": "integer"
                      },
                      "patternId": {
                        "maxLength": 64,
                        "type": "string"
                      },
                      "repeatCount": {
                        "minimum": 1,
                        "type": "integer"
                      },
                      "soloed": {
                        "type": "boolean"
                      },
                      "startMs": {
                        "minimum": 0,
                        "type": "integer"
                      },
                      "windowMs": {
                        "description": "Audible window length (right trim). null clears the trim window: the placement plays its full extent again (Trim Undo). Omit it to keep the stored window.",
                        "minimum": 1,
                        "type": [
                          "integer",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "placement"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternWriteResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Move / trim / loop / reroute a placement",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(update_pattern_placement)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/pattern-placements/{placement_id}/eq": {
      "get": {
        "description": "The pattern row's EQ as typed bands (band, enabled, type, type_index, frequency_hz, gain_db, q), read from the live engine; outside a live session, from the saved row (live=false). Band types: bell, proportional_q, vintage_bell, band_shelf, low_shelf, resonant_low_shelf, vintage_low_shelf, high_shelf, resonant_high_shelf, vintage_high_shelf, low_pass, resonant_low_pass, high_pass, resonant_high_pass, baxandall_bass, baxandall_treble.",
        "operationId": "getPatternPlacementEq",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "placement_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternPlacementEq"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Read a pattern placement's EQ bands",
        "tags": [
          "native_eq"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_pattern_eq)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/pattern-placements/{placement_id}/eq/bands/{band}": {
      "post": {
        "description": "Write one band (0-7) of a pattern row's EQ in typed units (enabled, type, frequency_hz, gain_db, q; MCP set_pattern_eq_band). The engine mirrors it across the pattern's placements and instrument lanes. Band types: bell, proportional_q, vintage_bell, band_shelf, low_shelf, resonant_low_shelf, vintage_low_shelf, high_shelf, resonant_high_shelf, vintage_high_shelf, low_pass, resonant_low_pass, high_pass, resonant_high_pass, baxandall_bass, baxandall_treble.",
        "operationId": "setPatternPlacementEqBand",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "placement_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "band",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "frequency_hz": {
                    "maximum": 20000.0,
                    "minimum": 20.0,
                    "type": "number"
                  },
                  "gain_db": {
                    "maximum": 18.0,
                    "minimum": -18.0,
                    "type": "number"
                  },
                  "persist": {
                    "default": true,
                    "description": "false = engine only (a drag tick); send the final value with true.",
                    "type": "boolean"
                  },
                  "q": {
                    "maximum": 18.0,
                    "minimum": 0.1,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "type": {
                    "default": "bell",
                    "enum": [
                      "bell",
                      "proportional_q",
                      "vintage_bell",
                      "band_shelf",
                      "low_shelf",
                      "resonant_low_shelf",
                      "vintage_low_shelf",
                      "high_shelf",
                      "resonant_high_shelf",
                      "vintage_high_shelf",
                      "low_pass",
                      "resonant_low_pass",
                      "high_pass",
                      "resonant_high_pass",
                      "baxandall_bass",
                      "baxandall_treble"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "enabled",
                  "frequency_hz",
                  "gain_db",
                  "q"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set one EQ band on a pattern placement",
        "tags": [
          "native_eq"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_pattern_eq_band)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/pattern-placements/{placement_id}/gain": {
      "put": {
        "description": "Linear gain of one timeline pattern row in the live engine (a level, not a mute; 1.0 = unity, the engine clamps to 0..4), saved on the placement and read back as PatternPlacement.gain. Placement gain applies to everything the pattern plays: its samples and the instrument lanes its notes drive (a lane whose own gain was set explicitly keeps that gain). The reply adds previousGain: the saved gain before this write (1.0 when never set) -- PUT it back to undo.",
        "operationId": "setPatternPlacementGain",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "placement_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "gain": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "gain"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/EngineActionResult"
                    },
                    {
                      "properties": {
                        "previousGain": {
                          "description": "The placement's saved gain before this write (1.0 when never set; null when the placement row was not found).",
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set a placement's gain",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_pattern_placement_gain)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/pattern-placements/{placement_id}:restore": {
      "post": {
        "description": "Revive THAT soft-deleted placement with its original id and every stored field (loopPhaseMs, sourceBusOverrides, trim window, row EQ/gain, mute/solo) plus its clip automation. Body `before` and `restoreToken` = the delete response's `undo.before` and `undo.restoreToken`. Only a placement deleted through a delete, and only that deletion, can be restored: a forged, expired or other-placement token is 403 `restore_token_invalid` / `restore_token_expired`; a placement changed or deleted again since is 409 `restore_token_stale`. The stored row is authoritative: a snapshot that does not match it is 409 `placement_snapshot_mismatch` (`details.mismatchedFields`). 409 `placement_not_deleted` when the id is live; 409 `pattern_deleted` / `lane_deleted` when its pattern or lane must be restored first. If-Match = the timeline revision (412 on a stale one). The engine pattern schedule is resynced and open Studios refresh.",
        "operationId": "restorePatternPlacement",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "placement_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "before": {
                    "$ref": "#/components/schemas/PatternPlacementSnapshot"
                  },
                  "restoreToken": {
                    "maxLength": 1024,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "before",
                  "restoreToken"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternPlacementRestoreResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Restore a deleted pattern placement (undo a delete)",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "restore_pattern_placement",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/pattern-placements/{placement_id}:split": {
      "post": {
        "description": "Atomically split at the absolute timeline position cut_ms, exactly like the Studio: phase is preserved inside tiled patterns and clip automation is sliced. Returns left, right and before (the undo snapshot). child_id (UUID) names the right half; repeating a split with the same child_id is refused instead of duplicating. Undo: undo=true with child_id and before.",
        "operationId": "splitPatternPlacement",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "placement_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "before": {
                    "type": "object"
                  },
                  "child_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "cut_ms": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "undo": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "before": {
                      "type": "object"
                    },
                    "cutMs": {
                      "type": "integer"
                    },
                    "left": {
                      "type": "object"
                    },
                    "placementId": {
                      "type": "string"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "right": {
                      "type": "object"
                    },
                    "timelineRevision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "undone": {
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Split a placement (or undo a split)",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "split_pattern_placement",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/pattern-placements:batch": {
      "post": {
        "description": "One paint stroke in one request: `ops` (1-256) of `{op: create, placement}`, `{op: update, placementId, placement}`, `{op: delete, placementId}` or `{op: restore, placementId, before, restoreToken}`. Atomic: every op runs in one DB transaction and a refused op (400 `invalid_op` / `invalid_argument` with `details.opIndex`, 404 `not_found` for an id outside this project, the restore codes) writes nothing. Placement fields follow updatePatternPlacement (`windowMs: null` clears the trim; on update an omitted `busId` keeps the stored route). If-Match = the timeline revision, compared inside the transaction (412 `timeline_revision_conflict`); Idempotency-Key replays. The engine pattern schedule is resynced ONCE after the commit and open Studios refresh once. The response carries the created / updated placement cards and `undo.inverse_ops` (reverse order): a create's inverse is a delete, an update's an update to the stored before-values, a delete's a restore with its signed `restoreToken` (24 h, bound to this deletion and your account). POST `{ops: undo.inverse_ops}` back here to undo.",
        "operationId": "applyPatternPlacementBatch",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "ops": {
                    "items": {
                      "$ref": "#/components/schemas/PatternPlacementBatchOp"
                    },
                    "maxItems": 256,
                    "minItems": 1,
                    "type": "array"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "ops"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternPlacementBatchResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Create / move / delete many placements at once",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(create/update/delete_pattern_placement), restore_pattern_placement",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/pattern-previews:launch": {
      "post": {
        "description": "Starts 1-8 pattern previews you armed (previewPattern arm_only=true with the same client_id) at ONE engine time, so the clips of a Session scene sound in time with each other. Each preview is a layer in its slot (slot_id, default the armed_signature); layers loop repeat_count times (default 64) and keep playing until stopped. quantize: none (default: start after lead_sec) | beat | bar -- the next beat / bar line of the grid of your layers already playing (else of your single preview; with nothing playing the launch starts at once); beats_per_bar (default 4) sets the bar. A slot already playing one of your layers is replaced exactly at the launch time; stop_others=true also ends your layers in the other slots there (a full scene change). Your single preview stops at the launch time too. Reply: engine_time_sec (the shared start, engine audio clock -- the same clock as previewPattern), quantum_sec, grid_anchor_sec, previews [{slot_id, layer_id, armed_signature, engine_time_sec, cycle_duration_sec, repeat_count, replaced_slot}], replaced_slots and layers (all of your layers now playing). Stop one slot with stopPatternPreview slot_id, all with stopAllPatternPreviews. The data-channel equivalent is {type: \"pattern_preview_launch\", project_id, key, seq, previews, quantize?, ...} -> pattern_preview_ack. At most 8 previews sound at once on a project's engine (409 too_many_previews); 409 not_armed lists missing_signatures (re-arm them). Starting a single preview (previewPattern without arm_only), or the transport, stops every layer. See /docs/realtime.html#pattern-launch. Needs Pro.",
        "operationId": "launchPatternPreviews",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "beats_per_bar": {
                    "default": 4,
                    "maximum": 32,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "client_id": {
                    "description": "The client_id of YOUR monitoring peer: the one whose arms the launch starts. Required.",
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "lead_sec": {
                    "default": 0.05,
                    "maximum": 2,
                    "minimum": 0,
                    "type": "number"
                  },
                  "preview_request_id": {
                    "description": "Your own increasing number for this press. A stop with preview_request_id N also refuses any start with an id <= N that arrives late (409 stale_preview_request).",
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "previews": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "armed_signature": {
                          "description": "Names a prepared (armed) preview: 1-128 letters, digits, - or _, starting with a letter or digit.",
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                          "type": "string"
                        },
                        "gain": {
                          "default": 0.92,
                          "maximum": 2,
                          "minimum": 0,
                          "type": "number"
                        },
                        "repeat_count": {
                          "default": 64,
                          "maximum": 64,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "slot_id": {
                          "description": "The Session clip slot (default: the armed_signature). A slot already playing one of your layers is replaced at the launch time.",
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "armed_signature"
                      ],
                      "type": "object"
                    },
                    "maxItems": 8,
                    "minItems": 1,
                    "type": "array"
                  },
                  "quantize": {
                    "default": "none",
                    "enum": [
                      "none",
                      "beat",
                      "bar"
                    ],
                    "type": "string"
                  },
                  "stop_others": {
                    "default": false,
                    "type": "boolean"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "previews",
                  "client_id"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Scene launch: start several armed pattern previews together",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(launch_pattern_previews)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/pattern-previews:stop": {
      "post": {
        "description": "Stops the pattern preview playing for you. With client_id it is your monitoring peer's preview (the one started by pattern_preview_start or previewPattern with that client_id); without it, the previews started without one. slot_id stops only that scene-launch slot (launchPatternPreviews), the other slots keep playing; without slot_id your single preview AND all of your scene layers stop (response.stopped_slots). preview_request_id N also refuses any start with an id <= N that is still on its way (409 stale_preview_request); the data-channel equivalent is pattern_preview_stop (slot_id too).",
        "operationId": "stopPatternPreview",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "client_id": {
                    "description": "The client_id of YOUR monitoring peer (monitor/offer). Arms, starts and stops are then kept per peer: a pattern_preview_start / pattern_preview_stop on that peer's mozart-control channel finds this arm, and nobody else's arm or stop can replace or refuse yours (the Studio's never could). Required with arm_only.",
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "placement_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "preview_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "preview_request_id": {
                    "description": "Your own increasing number for this press. A stop with preview_request_id N also refuses any start with an id <= N that arrives late (409 stale_preview_request).",
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "slot_id": {
                    "description": "Stop only this scene-launch slot.",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Stop one pattern preview",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(stop_pattern_preview)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/pattern-previews:stopAll": {
      "post": {
        "description": "Panic stop of your pattern previews (scheduled and sounding), scene layers included. With client_id it covers your monitoring peer's previews and refuses every start it already sent; without it, the previews started without a client_id. Other peers' scene layers keep playing.",
        "operationId": "stopAllPatternPreviews",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "client_id": {
                    "description": "The client_id of YOUR monitoring peer (monitor/offer). Arms, starts and stops are then kept per peer: a pattern_preview_start / pattern_preview_stop on that peer's mozart-control channel finds this arm, and nobody else's arm or stop can replace or refuse yours (the Studio's never could). Required with arm_only.",
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "preview_request_id": {
                    "description": "Your own increasing number for this press. A stop with preview_request_id N also refuses any start with an id <= N that arrives late (409 stale_preview_request).",
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Stop all pattern previews",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(stop_all_pattern_previews)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/pattern-samples": {
      "get": {
        "description": "The project's pattern-sample library (direct uploads and registered aliases), oldest first, as the Studio's Add Channel dock offers it: samples the user undid (padConfig.dismissedSampleIds) and aliases of imported audio whose import was undone or whose clip / lane was deleted are left out (include_hidden=true lists them too). Requires Pro.",
        "operationId": "listPatternSamples",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Also list undone / orphaned samples.",
            "in": "query",
            "name": "include_hidden",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/PatternSample"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List pattern samples",
        "tags": [
          "pattern_samples"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/pattern-samples/upload": {
      "post": {
        "description": "File -> Channel Rack: store one audio file in the project's pattern-sample library WITHOUT creating a Playlist lane, take or clip, exactly like a file dropped on a rack channel in the Studio, and return the canonical audioFileId (what pattern sources and placeOnTimeline reference). base64 file bytes (max 25 MB decoded), optional filename and name (<= 80 chars). The app's upload scanner validates the bytes and stores them as canonical WAV; the app-wide upload admission (concurrency + byte/storage quotas) applies, so an Idempotency-Key header is required. X-Freestyle-Upload-Intent: media (or omit it); metadata-only is refused. The same audio (SHA-256 of the bytes) already stored in this project, or in another project you own, answers 200 with existing=true and stores nothing. Requires Pro and editor access.",
        "operationId": "uploadPatternSample",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "base64": {
                    "description": "File bytes, base64 (a data: URL is accepted).",
                    "minLength": 4,
                    "type": "string"
                  },
                  "filename": {
                    "maxLength": 160,
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 80,
                    "type": "string"
                  }
                },
                "required": [
                  "base64"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "audioFileId": {
                      "type": "string"
                    },
                    "existing": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "sample": {
                      "$ref": "#/components/schemas/PatternSample"
                    },
                    "sha256": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "projectId",
                    "audioFileId",
                    "sample",
                    "existing"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The same audio is already stored (existing=true); nothing was uploaded."
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "audioFileId": {
                      "type": "string"
                    },
                    "existing": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "sample": {
                      "$ref": "#/components/schemas/PatternSample"
                    },
                    "sha256": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "projectId",
                    "audioFileId",
                    "sample",
                    "existing"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "413": {
            "description": "file_too_large: the decoded file exceeds the limit."
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "media:upload"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Upload a Channel Rack sample",
        "tags": [
          "pattern_samples"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "upload_pattern_sample",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "media:upload"
      }
    },
    "/projects/{project_id}/pattern-samples/{audio_file_id}/waveform": {
      "get": {
        "description": "Low-res peaks for a sample channel's waveform preview. Served from the peaks computed when the sample was ingested (before its storage encryption); a registered alias uses its source asset's peaks. An older sample with no stored peaks is decoded once by the project's live engine (which holds the media decrypt grant; the backend never decrypts the stored source), and the peaks are saved on the sample, so that first read can take a few seconds (it opens the project's engine session if none is open) and answers source=computed; later reads are source=stored. 404 `waveform_unavailable` (details.reason) only when the engine cannot decode it either. buckets 16-2048 (default 256). ETag changes when the stored peaks change.",
        "operationId": "getPatternSampleWaveform",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "audio_file_id",
            "required": true,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Number of peaks to return.",
            "in": "query",
            "name": "buckets",
            "required": false,
            "schema": {
              "default": 256,
              "maximum": 2048,
              "minimum": 16,
              "type": "integer"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternSampleWaveform"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Waveform preview of a pattern sample",
        "tags": [
          "pattern_samples"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/pattern-samples/{audio_file_id}:placeOnTimeline": {
      "post": {
        "description": "Browser sound -> Playlist: put a stored pattern sample (audioFileId from registerPatternSample / uploadPatternSample / listPatternSamples) on the timeline as an audio clip at startMs, exactly like the Studio's rack-to-Playlist drag: no bytes move (the clip references the SAME stored audio) and the clip is loaded into the live session (Mozart attach-db-clip). Body: startMs (integer ms, default 0), laneId (an audio lane of this project; omit it for a new audio lane; another project's lane is 404, a pattern / instrument / backing lane is 400 lane_not_audio), name, rackChannelId (the rack channel the sound came from). A sample not stored in this project is 404; the project track limit is 409 project_track_limit. The clip is durable even when the engine attach fails: engine_reload_required=true then means a session reload plays it. Guard: If-Match = timeline revision (412 timeline_revision_conflict). Returns the created clip and lane cards, the new timeline revision (ETag and timelineRevision) and undo {op: remove, clipId, laneId, createdLane}: remove the clip with applyClipBatch (op remove) and, when createdLane is true, deleteLane.",
        "operationId": "placePatternSampleOnTimeline",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "audio_file_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "laneId": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "rackChannelId": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "startMs": {
                    "default": 0,
                    "maximum": 86400000,
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternSampleTimelinePlacement"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Place a Channel Rack sample on the Playlist",
        "tags": [
          "pattern_samples"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "place_pattern_sample_on_timeline",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/pattern-samples:register": {
      "post": {
        "description": "Register existing project audio as a Channel Rack one-shot, exactly like the Studio's file drop onto the rack: no bytes are re-uploaded. Give ONE of track_id (a clip id), audio_file_id (an audio file from your library or this project), preset_pack_item_id (a preset sound) or sound_pack_item_id / catalog_sound_id (a Sound Library catalog row: every catalog row with canAdd=true carries a `register` handle naming exactly which field to send; any row the caller can see registers), plus an optional name (<= 80 chars). No notes or placements are added. 404 catalog_sound_not_found for a catalog id the caller cannot see. Returns the canonical audioFileId pattern sources reference: 201 for a new sample, 200 with existing=true when the same audio is already registered. Requires Pro and editor access.",
        "operationId": "registerPatternSample",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "audio_file_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "catalog_sound_id": {
                    "description": "Alias of sound_pack_item_id.",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 80,
                    "type": "string"
                  },
                  "preset_pack_item_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "sound_pack_item_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "track_id": {
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "audioFileId": {
                      "type": "string"
                    },
                    "existing": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "sample": {
                      "$ref": "#/components/schemas/PatternSample"
                    }
                  },
                  "required": [
                    "projectId",
                    "audioFileId",
                    "sample"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The same audio was already registered (existing=true)."
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "audioFileId": {
                      "type": "string"
                    },
                    "existing": {
                      "type": "boolean"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "sample": {
                      "$ref": "#/components/schemas/PatternSample"
                    }
                  },
                  "required": [
                    "projectId",
                    "audioFileId",
                    "sample"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Register a pattern sample",
        "tags": [
          "pattern_samples"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "register_pattern_sample",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/patterns": {
      "get": {
        "description": "Live (not deleted) patterns, oldest first, exactly as the Studio's Channel Rack reads them. ETag = timeline revision (If-None-Match answers 304).",
        "operationId": "listPatterns",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Pattern"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List patterns",
        "tags": [
          "patterns"
        ],
        "x-freestyle-mcp-equivalent": "get_pro_state (patterns)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      },
      "post": {
        "description": "Create a persisted pattern (notes, steps, samples, instruments, MIDI CC automation). The engine recompiles patterns in the background.",
        "operationId": "createPattern",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "pattern": {
                    "properties": {
                      "bars": {
                        "description": "Without lengthTicks, a bars change sets lengthTicks = ppq * 4 * bars. With lengthTicks it must equal ceil(lengthTicks / (ppq * 4)) (400 otherwise).",
                        "maximum": 64,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "events": {
                        "description": "Notes / step hits (a MIDI note per event). muted / slide must be booleans when present (400 otherwise).",
                        "items": {
                          "$ref": "#/components/schemas/PatternNote"
                        },
                        "type": "array"
                      },
                      "lengthTicks": {
                        "description": "Stored as given (<= ppq * 4 * 64). Without bars, bars = ceil(lengthTicks / (ppq * 4)); with bars, the two must agree (400 otherwise).",
                        "minimum": 1,
                        "type": "integer"
                      },
                      "name": {
                        "maxLength": 255,
                        "type": "string"
                      },
                      "ppq": {
                        "maximum": 960,
                        "minimum": 24,
                        "type": "integer"
                      },
                      "sources": {
                        "items": {
                          "$ref": "#/components/schemas/PatternChannel"
                        },
                        "type": "array"
                      },
                      "swing": {
                        "type": "number"
                      }
                    },
                    "type": "object"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "pattern"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternWriteResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Create a pattern",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(create_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/patterns/{pattern_id}": {
      "delete": {
        "description": "Soft-delete a pattern (remove its placements first). Undo with :restore.",
        "operationId": "deletePattern",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pattern_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternWriteResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Delete a pattern",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "execute_pro_action(delete_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      },
      "get": {
        "description": "One live pattern (channels, steps, notes, CC automation). ETag = timeline revision.",
        "operationId": "getPattern",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pattern_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pattern"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get a pattern",
        "tags": [
          "patterns"
        ],
        "x-freestyle-mcp-equivalent": "get_pro_state (patterns)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      },
      "patch": {
        "description": "Edit a pattern's name, length, swing, channels, notes, steps, samples, instruments or MIDI CC automation. Omitted scalar fields keep their stored value. Length: bars and lengthTicks stay consistent -- bars alone sets lengthTicks = ppq * 4 * bars; lengthTicks alone is stored and sets bars = ceil(lengthTicks / (ppq * 4)); both together must agree (bars = ceil(lengthTicks / (ppq * 4)), 400 invalid_argument otherwise) and are then stored as given. Channels (sources[]) keep color / icon / cutGroup / midiChannel / outputLaneId (validated: 400 on a bad value).",
        "operationId": "updatePattern",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pattern_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "pattern": {
                    "properties": {
                      "bars": {
                        "description": "Without lengthTicks, a bars change sets lengthTicks = ppq * 4 * bars. With lengthTicks it must equal ceil(lengthTicks / (ppq * 4)) (400 otherwise).",
                        "maximum": 64,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "events": {
                        "description": "Notes / step hits (a MIDI note per event). muted / slide must be booleans when present (400 otherwise).",
                        "items": {
                          "$ref": "#/components/schemas/PatternNote"
                        },
                        "type": "array"
                      },
                      "lengthTicks": {
                        "description": "Stored as given (<= ppq * 4 * 64). Without bars, bars = ceil(lengthTicks / (ppq * 4)); with bars, the two must agree (400 otherwise).",
                        "minimum": 1,
                        "type": "integer"
                      },
                      "name": {
                        "maxLength": 255,
                        "type": "string"
                      },
                      "ppq": {
                        "maximum": 960,
                        "minimum": 24,
                        "type": "integer"
                      },
                      "sources": {
                        "items": {
                          "$ref": "#/components/schemas/PatternChannel"
                        },
                        "type": "array"
                      },
                      "swing": {
                        "type": "number"
                      }
                    },
                    "type": "object"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "pattern"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternWriteResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Update a pattern",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(update_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/patterns/{pattern_id}/channels": {
      "post": {
        "description": "Insert `channel` (a sources[] entry: kind sample|plugin|instrument, name, audioFileId / laneId, color, icon, cutGroup, midiChannel, ...) at `position` (0-based; omitted = append). Channel `order` is renumbered to the rack order. `events` (notes) and `ccEvents` (MIDI CC automation), both optional, are added with sourceId = the channel id (used to undo a channel delete). `id` is minted when omitted; an id already in the rack is 409 `id_exists`. Validation is updatePattern's (400). If-Match = the timeline revision. `undo` = {method: DELETE, path, body: {}} (plus the older op field): send it as is. A deletePatternChannel undo object may be posted here whole: its op / method / path / body / timelineRevision keys are ignored.",
        "operationId": "addPatternChannel",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pattern_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "body": {
                    "description": "Ignored (undo descriptor echo).",
                    "type": "object"
                  },
                  "ccEvents": {
                    "description": "MIDI CC automation of the channel (a channel delete's undo.ccEvents), added with sourceId = the channel id.",
                    "items": {
                      "$ref": "#/components/schemas/PatternCcEvent"
                    },
                    "maxItems": 4096,
                    "type": "array"
                  },
                  "channel": {
                    "$ref": "#/components/schemas/PatternChannel"
                  },
                  "events": {
                    "items": {
                      "$ref": "#/components/schemas/PatternNote"
                    },
                    "maxItems": 4096,
                    "type": "array"
                  },
                  "method": {
                    "description": "Ignored (undo descriptor echo).",
                    "type": "string"
                  },
                  "op": {
                    "description": "Ignored: an undo object's `op`, echoed back.",
                    "type": "string"
                  },
                  "path": {
                    "description": "Ignored (undo descriptor echo).",
                    "type": "string"
                  },
                  "position": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "timelineRevision": {
                    "description": "Ignored; send it as If-Match instead.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "channel"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternChannelResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Add a Channel Rack channel (at a position)",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(update_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/patterns/{pattern_id}/channels/{channel_id}": {
      "delete": {
        "description": "Remove one channel with its notes / step hits and its MIDI CC automation. `undo` = {method: POST, path (addPatternChannel), body: {channel, position, events, ccEvents}}: send it as is to bring the channel back exactly (notes and CC automation included). The older shape (the same channel / position / events / ccEvents at the top level, with op) is still there and may be posted whole to addPatternChannel. If-Match = the timeline revision.",
        "operationId": "deletePatternChannel",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pattern_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "channel_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "pattern": {
                      "$ref": "#/components/schemas/Pattern"
                    },
                    "patternId": {
                      "type": "string"
                    },
                    "timelineRevision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "undo": {
                      "$ref": "#/components/schemas/PatternChannelUndo"
                    }
                  },
                  "required": [
                    "ok",
                    "patternId",
                    "undo",
                    "timelineRevision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Remove a channel from the rack",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-mcp-equivalent": "execute_pro_action(update_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      },
      "patch": {
        "description": "Merge `channel` fields into one rack channel (color, icon, cutGroup, midiChannel, outputLaneId, name, volume, busId, muted, solo, ...; `null` removes a field) and/or move it to `position` (0-based). id and kind cannot change. `undo` = {method: PATCH, path, body: {channel: before-values, position}} (plus the older op / channel / position fields): send it as is; posting the whole undo object back also works (op / method / path / body / timelineRevision are ignored). If-Match = the timeline revision.",
        "operationId": "updatePatternChannel",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pattern_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "channel_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "body": {
                    "description": "Ignored (undo descriptor echo).",
                    "type": "object"
                  },
                  "channel": {
                    "$ref": "#/components/schemas/PatternChannel"
                  },
                  "method": {
                    "description": "Ignored (undo descriptor echo).",
                    "type": "string"
                  },
                  "op": {
                    "description": "Ignored: an undo object's `op`, echoed back.",
                    "type": "string"
                  },
                  "path": {
                    "description": "Ignored (undo descriptor echo).",
                    "type": "string"
                  },
                  "position": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "timelineRevision": {
                    "description": "Ignored; send it as If-Match instead.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternChannelResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Edit a channel / move it in the rack",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(update_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/patterns/{pattern_id}/channels/{channel_id}:assignToNewInstrumentTrack": {
      "post": {
        "description": "FL's \"Assign to new instrument track\" in one action: creates a new Pattern lane (its own mixer track: insert chain, fader, pan, mute/solo, bus) named after the channel and routes the SAMPLE channel through it (`outputLaneId`), in one transaction. The engine pattern schedule is resynced. An instrument (plugin) channel already plays through its own instrument lane: the answer is 200 with `alreadyAssigned: true` and that `laneId`, and nothing changes. `undo.steps` = the two requests that undo it, in order: PATCH the channel's outputLaneId back, then DELETE the new lane. If-Match = the timeline revision.",
        "operationId": "assignPatternChannelToNewTrack",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pattern_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "channel_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "alreadyAssigned": {
                      "type": "boolean"
                    },
                    "channel": {
                      "$ref": "#/components/schemas/PatternChannel"
                    },
                    "lane": {
                      "type": "object"
                    },
                    "laneId": {
                      "type": "string"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "patternId": {
                      "type": "string"
                    },
                    "timelineRevision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "undo": {
                      "$ref": "#/components/schemas/PatternChannelUndo"
                    }
                  },
                  "required": [
                    "ok",
                    "patternId",
                    "laneId",
                    "alreadyAssigned",
                    "timelineRevision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "an instrument channel already on its own lane (alreadyAssigned: true)"
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "alreadyAssigned": {
                      "type": "boolean"
                    },
                    "channel": {
                      "$ref": "#/components/schemas/PatternChannel"
                    },
                    "lane": {
                      "type": "object"
                    },
                    "laneId": {
                      "type": "string"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "patternId": {
                      "type": "string"
                    },
                    "timelineRevision": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "undo": {
                      "$ref": "#/components/schemas/PatternChannelUndo"
                    }
                  },
                  "required": [
                    "ok",
                    "patternId",
                    "laneId",
                    "alreadyAssigned",
                    "timelineRevision"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Assign a channel to a new instrument track",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(update_pattern) + a new pattern lane",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/patterns/{pattern_id}:restore": {
      "post": {
        "description": "Restore a soft-deleted pattern.",
        "operationId": "restorePattern",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "pattern_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatternWriteResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Restore a deleted pattern",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(restore_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/patterns:preview": {
      "post": {
        "description": "Audition a pattern (or unsaved note/step edits) in the live engine. repeat_count 1-64 loops it; gain, phase_offset_sec, lead_sec and swing shape the audition; placement_id previews through that placement's routing. Not idempotent (each call plays). Pre-arm (Session clip launch): arm_only=true with client_id (your monitoring peer) compiles the pattern and resolves its samples WITHOUT playing; the reply carries armedSignature (yours, else a generated one) and the engine's response {ok, armed: true, armed_signature, prepare_ms, session_epoch}. Then start it with ONE message on that peer's mozart-control channel: {type: \"pattern_preview_start\", project_id, key, seq, armed_signature, preview_request_id, repeat_count?, gain?, phase_offset_sec?, lead_sec?} -> {type: \"pattern_preview_ack\", ok, key, seq, armed_signature, preview_request_id, engine_time_sec, ...} (code not_armed: re-arm, or call this op without arm_only; stale_preview_request: that id was already stopped). Stop it with {type: \"pattern_preview_stop\", project_id, key, seq, preview_request_id}. Over REST, armed_signature (with the same client_id) without arm_only starts the armed preview, and compiles pattern instead when the arm is gone. An arm is kept per peer, one at a time (a new arm replaces it), for up to 10 minutes and until the engine session reloads; re-arm after each edit. A peer keeps up to 16 arms at once (one per signature; the oldest is dropped). This single preview replaces everything sounding when it starts (scene layers included); to play several together at one time, arm each and use launchPatternPreviews (see /docs/realtime.html#pattern-launch). Needs Pro, like every pattern preview.",
        "operationId": "previewPattern",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "arm_only": {
                    "default": false,
                    "description": "Prepare without playing (needs client_id).",
                    "type": "boolean"
                  },
                  "armed_signature": {
                    "description": "Names a prepared (armed) preview: 1-128 letters, digits, - or _, starting with a letter or digit.",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "type": "string"
                  },
                  "bars": {
                    "maximum": 64,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "bpm": {
                    "maximum": 400,
                    "minimum": 20,
                    "type": "number"
                  },
                  "client_id": {
                    "description": "The client_id of YOUR monitoring peer (monitor/offer). Arms, starts and stops are then kept per peer: a pattern_preview_start / pattern_preview_stop on that peer's mozart-control channel finds this arm, and nobody else's arm or stop can replace or refuse yours (the Studio's never could). Required with arm_only.",
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  },
                  "gain": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "lead_sec": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "length_ticks": {
                    "minimum": 1,
                    "type": "integer"
                  },
                  "pattern": {
                    "type": "object"
                  },
                  "phase_offset_sec": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "placement_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "ppq": {
                    "maximum": 960,
                    "minimum": 24,
                    "type": "integer"
                  },
                  "preview_request_id": {
                    "description": "Your own increasing number for this press. A stop with preview_request_id N also refuses any start with an id <= N that arrives late (409 stale_preview_request).",
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "repeat_count": {
                    "maximum": 64,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "swing": {
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "pattern"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Preview a pattern, or arm it for a data-channel start",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(preview_pattern)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/patterns:resync": {
      "post": {
        "description": "Recompile every persisted pattern and placement in the live engine (optional bpm, muted_placement_ids).",
        "operationId": "resyncPatterns",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bpm": {
                    "maximum": 400,
                    "minimum": 20,
                    "type": "number"
                  },
                  "muted_placement_ids": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Recompile patterns in the engine",
        "tags": [
          "patterns"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(resync_patterns)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/plugins/{plugin_instance_id}/automation": {
      "get": {
        "description": "plugin_parameter envelopes targeting one plugin instance (optionally one stable_param_id).",
        "operationId": "listPluginAutomation",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "plugin_instance_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Only this clip ('pattern:<id>' / 'backing:<id>' too).",
            "in": "query",
            "name": "clip_id",
            "required": false,
            "schema": {
              "maxLength": 96,
              "type": "string"
            }
          },
          {
            "description": "Only clips on this lane ('backing' = the backing lane).",
            "in": "query",
            "name": "lane_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "stable_param_id",
            "required": false,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "true = stored envelopes only (drops the default gain curves).",
            "in": "query",
            "name": "persisted",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/AutomationEnvelope"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List a plugin instance's automation envelopes",
        "tags": [
          "automation"
        ],
        "x-freestyle-mcp-equivalent": "list_automation",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/recording": {
      "get": {
        "description": "Whether the engine is recording or armed (counting in), where the take started and the count-in beats left, read from the engine clock (/transport/clock), the same state the Studio's record button follows. This is a recording view of the clock, not the clock: for the full transport clock (loop, metronome, position) call getTransportClock. Keepalive: the engine holds a startRecording arm for 60 s after the caller's last sign of life (startRecording, a fresh keepalive on the caller's live-ingest uplink, or this status read with a daw:write token), and never longer than the 20 minute take limit.",
        "operationId": "getRecordingStatus",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional live-session scope.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecordingStatus"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "engine_unavailable / target_not_loaded: the live session is not reachable."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get recording status",
        "tags": [
          "recording"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/recording:finalize": {
      "post": {
        "description": "End the caller's own recording arm and, with take_id, save the take recorded on the caller's live-ingest uplink as a clip of the project (finalize_recording; destructive in the catalog, so confirm=true is required). Send {type:'take_stop', take_id, song_end_sec} on the uplink's data channel first (finalize may be sent right after it: a finalize that arrives before the engine processed take_stop waits for it). response: saved, state, track_id (the new clip), lane_id, start_ms, duration_sec, engine_disarmed. The take is scanned and promoted as the calling user exactly like a Studio take; only a take the calling user recorded can be saved (403 recording_take_owner_mismatch). wait_for='placed' (recommended for UIs): the call answers 200 as soon as the take is captured and its clip is on the lane, usually about a second after take_stop, with saved=false, state='saving' and the clip's final track_id / lane_id / start_ms / duration_sec (in_engine=true: it already plays in the engine). The malware scan and store (about 10 s) finish in the background; call finalizeRecording again with the same take_id to learn the outcome: saved=true (state='saved') or a final 422 recording_take_rejected (the clip is then removed). wait_for='saved' (default, the original contract): a 200 means the take is fully saved (scanned and stored); that can take longer than one call waits. Each call waits up to wait_ms (default 8000, max 10000), then answers 409 recording_take_pending: the expected 'still saving' signal, not an error. Show the take as saving and call again with the same take_id (idempotent). 404 recording_take_not_found. Final, do not retry: 422 recording_take_silent (the take held no audio; nothing saved) and 422 recording_take_rejected (refused by the media scan, superseded by a newer take on its lane, access revoked, or its save failed); record again with a new take_id. The caller's own arm always ends here; a take a browser or live-room member armed or joined keeps recording for them (engine_disarmed=false) and they can stop it. Without take_id only the arm is ended.",
        "operationId": "finalizeRecording",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional live-session scope.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirm": {
                    "type": "boolean"
                  },
                  "take_id": {
                    "description": "The take_id sent in take_start on the live-ingest uplink.",
                    "maxLength": 96,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9_-]{1,96}$",
                    "type": "string"
                  },
                  "wait_for": {
                    "default": "saved",
                    "description": "placed: answer once the clip is on its lane (saved=false, state='saving'); saved: answer once the take is stored.",
                    "enum": [
                      "saved",
                      "placed"
                    ],
                    "type": "string"
                  },
                  "wait_ms": {
                    "description": "How long to wait (default 8000).",
                    "maximum": 10000,
                    "minimum": 0,
                    "type": "integer",
                    "x-unit": "milliseconds"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Stop and finalize the take",
        "tags": [
          "recording"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "execute_pro_action(finalize_recording, confirmed_destructive=true)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/recording:start": {
      "post": {
        "description": "Arm the engine and start a take as the calling user (start_recording). The take's audio is the client's own live-ingest microphone uplink (sendLiveIngestOffer: WebRTC, client -> Mozart directly; pass lane_id there to pick the record lane); no audio ever passes through this API. Sequence: (1) sendLiveIngestOffer with the microphone track and the negotiated data channel (id 200, label mozart-live-ingest); send {type:'keepalive', id} on it every 5 s; (2) startRecording; (3) on the data channel send response.audio.take_start plus your own take_id ([A-Za-z0-9_-], <= 96, no '__', single-use: a reused id is refused with take_refused take_id_in_use): {type:'take_start', take_id, mode:'record', song_start_sec, lane_id?} (lane_id here, a lane of this project or 404, is echoed into it; default = the user's own vocal lane); (4) {type:'take_stop', take_id, song_end_sec} when done (song_end_sec = song_start_sec + the take's length in seconds; it bounds the saved clip); (5) finalizeRecording(take_id, wait_for='placed'): the clip is on the lane in about a second, then it is scanned and promoted as the calling user exactly like a Studio take. Existing clips on the lane are kept: an API take on a normal project only adds its clip. In a live room / Endless session the room's one-take-per-lane rule applies (the take replaces the earlier takes on its lane at take_start). The take is placed on the song timeline from song_start_sec. Like Record in any DAW, a take_start (mode 'record', engine_mode true or false) on a STOPPED transport rolls the transport from song_start_sec (take_started.started_transport=true); send sync song_sec from the engine clock as it moves. A take whose song clock still never moved (every sync at the same song_sec) is saved whole from song_start_sec, never cut to the last seconds. count_in_beats with start_transport=true rolls it on the count-in boundary instead. See /docs/realtime.html#recording-takes. A failed start stops a transport it started (start_transport) and parks the playhead back. Count-in: count_in_beats (1-8) is the Studio's count-in (Mozart /transport/record-arm, wait=true): the metronome clicks that many beats and the reply returns AT the recording boundary with response.count_in {beats, beat_samples, bpm, first_click_sample, recording_start_sample, recording_start_position_seconds, audio_device_sample, sample_rate, transport_started, ...} (also response.count_in_beat_samples / count_in_bpm, the legacy names). Samples are on the engine's audio-device clock: last click -> boundary = one beat. seek_seconds parks a stopped transport there first, start_transport=true rolls it on the boundary, bpm (20-400) is the count-in tempo. 0 or absent = armed at once. While anybody (a browser, a live room, another API client) records on the engine the start is 409 recording_in_progress and that take is untouched. Keepalive: the engine keeps the arm while the uplink's data-channel keepalive is fresh or the caller polls getRecordingStatus, drops it 60 s after the last sign of life and never holds it longer than the 20 minute take limit. finalizeRecording ends the arm (response.engine_disarmed) but never a take a browser or live-room member armed or joined. 409 engine_update_required: the engine host does not support API recording yet.",
        "operationId": "startRecording",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Optional live-session scope.",
            "in": "query",
            "name": "scope_track_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bpm": {
                    "description": "With count_in_beats: the count-in tempo.",
                    "maximum": 400,
                    "minimum": 20,
                    "type": "number"
                  },
                  "count_in_beats": {
                    "default": 0,
                    "description": "Metronome count-in beats before the take.",
                    "maximum": 8,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "lane_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "seek_seconds": {
                    "description": "With count_in_beats: park the stopped transport here first.",
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "seconds"
                  },
                  "start_transport": {
                    "default": false,
                    "description": "With count_in_beats: roll the transport on the boundary.",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Start recording",
        "tags": [
          "recording"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(start_recording)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/region-effect-jobs/{job_id}": {
      "get": {
        "description": "Status of an apply job: queued | running | done | failed, the current step, and on done the full apply result (including undo.inverse_ops). wait_sec (0-50) long-polls. Jobs are kept one hour and are per user; after a server restart retry the apply with the same Idempotency-Key. A failed job is 200 with status 'failed', error, code and http_status (the job resource exists; the apply failed).",
        "operationId": "getRegionEffectJob",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "wait_sec",
            "required": false,
            "schema": {
              "default": 0,
              "maximum": 50,
              "minimum": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegionEffectJob"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get a region effect job",
        "tags": [
          "region_effects"
        ],
        "x-freestyle-mcp-equivalent": "get_region_effect_job",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/saves": {
      "get": {
        "description": "Named saves (version history), newest first (the most recent 50).",
        "operationId": "listProjectSaves",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/ProjectSave"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List project saves",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-mcp-equivalent": "list_project_saves",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "projects:read"
      },
      "post": {
        "description": "Snapshot the current project state as a named save (auto-named when name is omitted).",
        "operationId": "createProjectSave",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "maxLength": 255,
                    "type": "string"
                  },
                  "snapshot_only": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Create a project save",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "create_project_save",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/saves/{save_id}:restore": {
      "post": {
        "description": "Roll the project back to one of the caller's saves. Destructive: pass confirm=true after the user agreed.",
        "operationId": "restoreProjectSave",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "save_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirm": {
                    "default": false,
                    "description": "Must be true: the user explicitly confirmed this destructive action.",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Restore a project save",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "restore_project_save",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/share": {
      "get": {
        "description": "Visibility, default link role, collaborators with their roles, the share URL and the caller's own role. Owners, editors and viewers.",
        "operationId": "getProjectShare",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectShare"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get share settings",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-mcp-equivalent": "get_project_share",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "projects:read"
      },
      "patch": {
        "description": "Owner only. visibility private | link | public and/or default_role viewer | editor for link visitors.",
        "operationId": "updateProjectShare",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "default_role": {
                    "enum": [
                      "viewer",
                      "editor"
                    ],
                    "type": "string"
                  },
                  "visibility": {
                    "enum": [
                      "private",
                      "link",
                      "public"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectShare"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Update visibility / default role",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "update_project_share",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "owner",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/share:resetLink": {
      "post": {
        "description": "Owner only. Mints a new share link; everyone who joined through the old one loses access (named collaborators keep theirs). Destructive: pass confirm=true.",
        "operationId": "resetProjectShareLink",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.",
            "in": "query",
            "name": "confirm",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "confirm": {
                    "default": false,
                    "description": "Must be true: the user explicitly confirmed this destructive action.",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectShare"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Reset the share link",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-confirmation": "confirm=true",
        "x-freestyle-mcp-equivalent": "reset_share_link",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "owner",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/projects/{project_id}/stems/jobs/{job_id}": {
      "get": {
        "description": "Poll a splitClipStems job (every ~10 s; Retry-After while processing). A pure read: it never loads, acknowledges or mutes anything. status done lists every created lane (laneId, stem, name, clipIds) and what the job muted (sourceMuted), with undo = the one undoStemJob call that removes them. The job stays readable after the Studio acknowledges it (status undone once undone); a failed job stays readable (status failed) after newer splits. 404 stem_job_not_found for an unknown id.",
        "operationId": "getStemJob",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "pattern": "^[a-f0-9]{32}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StemJob"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get a stem split job",
        "tags": [
          "stems"
        ],
        "x-freestyle-mcp-equivalent": "get_stem_status",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/stems/jobs/{job_id}:undo": {
      "post": {
        "description": "Remove exactly what one finished split created: soft-delete its clips and lanes (a lane you have since put other audio on is kept, minus the job's clips; the rows they leave close like deleteLane) and restore the source clip mute it set (only where that mute is still in place; a lane mute set since is kept). When the project is open in a live engine session the lanes are dropped and the source clip un-muted there at once (liveEngine; a backing un-mute needs engine:reload, engine_reload_required says so). Idempotent: a second undo answers alreadyUndone. If-Match takes the timeline revision; the response ETag is the new one. 409 stem_job_running while the job is processing, 409 nothing_to_undo for a failed job.",
        "operationId": "undoStemJob",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "pattern": "^[a-f0-9]{32}$",
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {},
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StemJobUndo"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Undo a stem split",
        "tags": [
          "stems"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "undo_stems",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/take-groups": {
      "post": {
        "description": "FL Studio loop recording keeps one take per loop pass. This tags 2-64 clips of ONE lane (clip_ids, oldest pass first) as a stack in one transaction: project_tracks.take_group_id / take_index are written and exactly one take stays audible (active_clip_id, default the newest); the others get the per-clip mute and are muted live. Clips already in a stack are 409 take_group_exists. Backing, pattern and other-project clips are 404. If-Match = timeline revision (412 timeline_revision_conflict). Returns the stack (clip cards carry takeGroupId / takeIndex), the new timeline revision (ETag) and the engine mirror state. Undoing a recording removes its clips with clips:batch.",
        "operationId": "groupTakes",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "active_clip_id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "clip_ids": {
                    "items": {
                      "maxLength": 64,
                      "type": "string"
                    },
                    "maxItems": 64,
                    "minItems": 2,
                    "type": "array"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "clip_ids"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TakeStackResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Stack clips as takes of one lane",
        "tags": [
          "clips"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_clip_muted) per take",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/tempo": {
      "put": {
        "description": "A one-segment constant tempo map at bpm (20-400); meter and pattern meters are kept. A map with ramps or several segments is refused with 409 tempo_map_not_constant (edit it with PUT timing-map). If-Match = the timing-map revision you read (412 if it moved). mode=keep_time (default, unchanged behaviour): clips and pattern placements keep their start time. mode=stretch_audio (Logic \"Adapt Project Tempo\"): every audio clip is time-stretched with pitch preserved through the per-clip tempo render pipeline (always from its original audio), a backing that is not yet a clip is first converted into one full-length clip, and every clip and pattern placement start (and placement length) is scaled by old_bpm/new_bpm around project time 0, so content stays on the same bar and beat. Hidden loop repeats tile their parent's measured rendered length; automation is rescaled (clip envelopes by the clip's measured render ratio, pattern-placement and lane envelopes by old/new); when the backing audio is stretched the bar-ruler anchor (backing.firstBeatSec) follows it; timed custom lyrics (time_ms) scale by old/new. After the save the live engine session is reloaded in the background with retries (engine.reload 'pending' until it finished); if it still cannot be reloaded the job is status succeeded with engine_reload_required=true (call reloadEngineSession). stretch_audio is a job: 202 with job_id, status and a Location to poll (getTempoStretchJob). Renders are staged: the project keeps playing exactly as before until every render succeeded, then ONE transaction swaps the audio, positions and tempo together (it is never half-stretched; a failed render changes nothing). While the job is queued or running, clip, pattern-placement, tempo-map, automation and lyrics writes on the project answer 409 tempo_stretch_in_progress (details.job_id); an edit made anyway (directly on the live engine) fails the job with tempo_stretch_project_changed and is kept. undoTempoStretchJob restores the tempo, positions and original audio exactly. One stretch costs one hourly tempo request (none when it could not start). 409 tempo_stretch_in_progress while another stretch runs (one per project); 422 tempo_out_of_range when an already-stretched clip would leave 20-400 BPM.",
        "operationId": "setProjectTempo",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bpm": {
                    "maximum": 400,
                    "minimum": 20,
                    "type": "number"
                  },
                  "mode": {
                    "default": "keep_time",
                    "description": "keep_time = clips keep their time; stretch_audio = clips keep their bar (a job).",
                    "enum": [
                      "keep_time",
                      "stretch_audio"
                    ],
                    "type": "string"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "bpm"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "mode=stretch_audio: the TempoStretchJob is running; poll the Location header."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Set the scalar project tempo",
        "tags": [
          "timing"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_project_tempo)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/tempo-jobs/{job_id}": {
      "get": {
        "description": "A setProjectTempo mode=stretch_audio job: status queued | running | succeeded | failed | undone, per-clip render progress (clips[].render), every clip's and placement's start before/after, the timing-map revision it produced and the undo call. The job is driven server-side (it finishes, times out after 30 minutes and survives a server restart without being polled); reading it never waits on the engine. A failed job is 200 with status 'failed' and error {code, message, details?}: nothing changed (staged renders are discarded; backing_restore_failed=true if a converted backing could not be put back).",
        "operationId": "getTempoStretchJob",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TempoStretchJob"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get a tempo stretch job",
        "tags": [
          "timing"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_tempo_stretch_job)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/tempo-jobs/{job_id}:undo": {
      "post": {
        "description": "Restores what a succeeded stretch_audio job changed, exactly: the previous tempo, every clip's start/length/offset and its ORIGINAL audio file (renders never modified the originals), pattern placements, automation points (revisions move forward), the bar-ruler anchor, and the backing row when the stretch converted it; engine_reload_required as for the stretch. Status becomes 'undone'; repeating the call replays it (replay=true). Timed custom lyrics get their exact previous times back. 409 tempo_stretch_undo_conflict (details.changed) when ANYTHING undo would overwrite changed after the stretch: any clip's start, length, offset, audio or tempo render state, any placement's start/length/loop/offset/window/phase, automation, lyrics, the tempo, or a clip or placement that was added or deleted; nothing is restored in that case. Other clip settings (gain, mute, plug-ins, filters) are neither compared nor restored: such an edit made during or after the stretch never blocks undo and survives it. 409 tempo_stretch_not_undoable while it is still running or after it failed; 409 tempo_stretch_in_progress while another stretch runs on the project.",
        "operationId": "undoTempoStretchJob",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TempoStretchJob"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Undo a tempo stretch",
        "tags": [
          "timing"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(undo_tempo_stretch)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/time-range-edits": {
      "post": {
        "description": "Audacity-style split / delete (ripple or not) / trim_to_selection across lanes, as ONE atomic engine batch. Boundaries: start_ms/end_ms OR start_frame/end_frame (+ sample_rate). Returns the plan, clips_after, cuts, skipped_lanes and undo.inverse_ops (POST them to clips:batch to undo). The Idempotency-Key header doubles as the edit's idempotency_key (new clip ids derive from it). dry_run=true plans only. If-Match takes the timeline revision.",
        "operationId": "editTimeRange",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "dry_run": {
                    "default": false,
                    "type": "boolean"
                  },
                  "end_frame": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "end_ms": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "idempotency_key": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "lane_ids": {
                    "items": {
                      "maxLength": 64,
                      "type": "string"
                    },
                    "maxItems": 64,
                    "minItems": 1,
                    "type": "array"
                  },
                  "operation": {
                    "enum": [
                      "split",
                      "delete",
                      "trim_to_selection"
                    ],
                    "type": "string"
                  },
                  "ripple": {
                    "default": false,
                    "type": "boolean"
                  },
                  "sample_rate": {
                    "maximum": 384000,
                    "minimum": 8000,
                    "type": "number"
                  },
                  "start_frame": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "start_ms": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "lane_ids",
                  "operation"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Edit a time range across lanes",
        "tags": [
          "clips"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "edit_time_range",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/timing-map": {
      "get": {
        "description": "Tempo segments (ticks @ 96 PPQ, quarter-note bpm, curve constant|linear), meter map, pattern meters, units, revision and undo availability. ETag = revision; If-None-Match answers 304 for a stored map (an implicit map follows the scalar BPM, so it is always sent).",
        "operationId": "getTimingMap",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Include the revision history (without the maps).",
            "in": "query",
            "name": "history",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "ETag from a previous read; 304 when unchanged.",
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimingMap"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified (If-None-Match matched)."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get the tempo + meter map",
        "tags": [
          "timing"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_timing_map)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      },
      "put": {
        "description": "Atomically replaces tempo and/or meter (whole lists; omit one to keep it, [] resets it) and merges pattern meters, at If-Match (or expected_revision) = the revision you read: 412 timing_map_revision_conflict (details.current = the current map) if it moved. Returns the new revision (ETag), the inverse call and the engine resync status.",
        "operationId": "setTimingMap",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_revision": {
                    "description": "The revision you read (or send it as If-Match). Mismatch: 412 timing_map_revision_conflict.",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "meter": {
                    "items": {
                      "properties": {
                        "bar": {
                          "minimum": 1,
                          "type": "integer"
                        },
                        "denominator": {
                          "enum": [
                            1,
                            2,
                            4,
                            8,
                            16,
                            32
                          ],
                          "type": "integer"
                        },
                        "groups": {
                          "items": {
                            "minimum": 1,
                            "type": "integer"
                          },
                          "type": "array"
                        },
                        "numerator": {
                          "maximum": 64,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "tick": {
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "numerator",
                        "denominator"
                      ],
                      "type": "object"
                    },
                    "maxItems": 256,
                    "type": "array"
                  },
                  "patterns": {
                    "description": "{pattern_id: {meter: [...]} | null}, merged by id.",
                    "type": "object"
                  },
                  "pickup_ticks": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "reason": {
                    "maxLength": 200,
                    "type": "string"
                  },
                  "tempo": {
                    "items": {
                      "properties": {
                        "bar": {
                          "minimum": 1,
                          "type": "number"
                        },
                        "beat": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "bpm": {
                          "maximum": 522,
                          "minimum": 10,
                          "type": "number"
                        },
                        "curve": {
                          "enum": [
                            "constant",
                            "linear"
                          ],
                          "type": "string"
                        },
                        "end_bpm": {
                          "maximum": 522,
                          "minimum": 10,
                          "type": "number"
                        },
                        "tick": {
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "bpm"
                      ],
                      "type": "object"
                    },
                    "maxItems": 1024,
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimingMap"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Replace the tempo and/or meter map",
        "tags": [
          "timing"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_timing_map)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/timing-map:convert": {
      "post": {
        "description": "Converts up to 256 positions between tick, beat, bar:beat:tick, seconds, ms and frames (with sample_rate) through the current map. Read-only.",
        "operationId": "convertMusicalTime",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "positions": {
                    "items": {
                      "description": "Exactly one coordinate: {tick} | {beat} | {bar, beat?, tick?} | {bar_float} | {seconds} | {ms} | {frame, sample_rate?} | 'bar:beat:tick' text.",
                      "oneOf": [
                        {
                          "type": "object"
                        },
                        {
                          "maxLength": 64,
                          "type": "string"
                        }
                      ]
                    },
                    "maxItems": 256,
                    "type": "array"
                  },
                  "sample_rate": {
                    "maximum": 384000,
                    "minimum": 8000,
                    "type": "number"
                  }
                },
                "required": [
                  "positions"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "fingerprint": {
                      "type": "string"
                    },
                    "positions": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "projectId": {
                      "type": "string"
                    },
                    "revision": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Convert musical positions",
        "tags": [
          "timing"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(convert_musical_time)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/timing-map:undo": {
      "post": {
        "description": "Writes a new revision restoring the content before the last edit, at If-Match (or expected_revision). 409 timing_map_nothing_to_undo when no earlier edit is recorded.",
        "operationId": "undoTimingMap",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "expected_revision": {
                    "description": "The revision you read (or send it as If-Match). Mismatch: 412 timing_map_revision_conflict.",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "reason": {
                    "maxLength": 200,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimingMap"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Undo the last tempo/meter edit",
        "tags": [
          "timing"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(undo_timing_map)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/transport": {
      "get": {
        "description": "Playhead, playing, loop and play_range state of the live session.",
        "operationId": "getTransport",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransportState"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "engine_unavailable: the project has no live engine target."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get transport status",
        "tags": [
          "transport"
        ],
        "x-freestyle-mcp-equivalent": "transport_control(status) / execute_pro_action(get_transport)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/transport/clock": {
      "get": {
        "description": "Lock-free engine clock: position_seconds, is_playing, sample_rate, producer_latency_seconds (cursor source of truth; poll it to draw a playhead).",
        "operationId": "getTransportClock",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "track_id",
            "required": false,
            "schema": {
              "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
              "maxLength": 64,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransportState"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "description": "engine_unavailable: the project has no live engine target."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get the transport clock",
        "tags": [
          "transport"
        ],
        "x-freestyle-mcp-equivalent": "execute_pro_action(get_transport_clock)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/projects/{project_id}/transport/loop": {
      "put": {
        "description": "enabled (required) and, optionally, the loop range in seconds or ticks. The switch and the region are separate, like a DAW's cycle: a bound you leave out keeps the current one, so {enabled:false} keeps the region and a later {enabled:true} loops that same region again. Enabling with no usable region (end after start) is refused with 409 loop_region_required and changes nothing (send start_sec/end_sec, e.g. a default bar range). Explicit values, including 0, still replace the region. For ticks, If-Match (or timing_map_revision) guards the timing-map revision.",
        "operationId": "setLoop",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "end_sec": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "end_tick": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "start_sec": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "start_tick": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "timing_map_revision": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "enabled"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Enable / disable the transport loop",
        "tags": [
          "transport"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "execute_pro_action(set_transport_loop)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/transport/pause": {
      "post": {
        "operationId": "pause",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Pause playback",
        "tags": [
          "transport"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "transport_control(pause)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/transport/play": {
      "post": {
        "description": "Starts the transport. Count-in: count_in_beats (1-16) clicks that many beats at the tempo first -- also with the metronome off -- and starts the stopped transport exactly one beat after the last click; no recording is armed (for a MIDI take your app stamps itself, or count-in-then-play). seek_seconds parks the transport there first (0 = the project start: the clicks need no timeline before it); bpm (20-400) sets the tempo first when the tempo map is constant. The reply returns ON the boundary (wait=false: at once) with response {transport_started, position_seconds, start_position_seconds, count_in_beats, count_in_bpm, count_in_beat_samples, count_in_first_click_sample, transport_start_sample, audio_device_sample, sample_rate}; samples are on the engine's audio-device clock (last click -> transport_start_sample = one beat). Pause, play or seek during the count-in cancels it (409 count_in_cancelled). See /docs/realtime.html#count-in.",
        "operationId": "play",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "bpm": {
                    "description": "With count_in_beats: the tempo (constant tempo maps).",
                    "maximum": 400,
                    "minimum": 20,
                    "type": "number"
                  },
                  "count_in_beats": {
                    "description": "Count-in clicks before the transport starts.",
                    "maximum": 16,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "seek_seconds": {
                    "description": "With count_in_beats: park the transport here first.",
                    "minimum": 0,
                    "type": "number",
                    "x-unit": "seconds"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "wait": {
                    "default": true,
                    "description": "With count_in_beats: answer on the boundary.",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Start playback (optionally after a count-in)",
        "tags": [
          "transport"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "transport_control(play) / execute_pro_action(transport_count_in)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/transport/play-range": {
      "post": {
        "description": "Plays [start, end) once; the engine stops exactly at end (sample-accurate). start_sec/end_sec, or start_frame/end_frame (+ sample_rate). Invalid values are rejected, never clamped.",
        "operationId": "playRange",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "end_frame": {
                    "minimum": 1,
                    "type": "integer"
                  },
                  "end_sec": {
                    "exclusiveMinimum": 0,
                    "type": "number"
                  },
                  "sample_rate": {
                    "maximum": 384000,
                    "minimum": 8000,
                    "type": "number"
                  },
                  "start_frame": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "start_sec": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Play a range once",
        "tags": [
          "transport"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "transport_control(play_range)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}/transport/seek": {
      "post": {
        "description": "Give seconds, or tick (96 PPQ through the tempo map). play=true seeks and starts playback (seconds only). For ticks, If-Match (or timing_map_revision) guards the timing-map revision: 412 timing_map_revision_conflict if it moved. 409 no_audio_loaded: the session has no audio at all yet (an empty project); add a backing, a clip or a pattern first (play / playRange answer the same code).",
        "operationId": "seek",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          },
          {
            "description": "ETag from a previous read; 412 if the resource changed since.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "play": {
                    "default": false,
                    "type": "boolean"
                  },
                  "seconds": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "tick": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "timing_map_revision": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "track_id": {
                    "description": "Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).",
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EngineActionResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "412": {
            "$ref": "#/components/responses/PreconditionFailed"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Move the playhead",
        "tags": [
          "transport"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "transport_control(seek|seek_and_play)",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "editor",
        "x-freestyle-scope": "daw:write"
      }
    },
    "/projects/{project_id}:duplicate": {
      "post": {
        "description": "Saves a copy (lanes, clips, patterns, plugin state) as a new project owned by the caller. Viewers may duplicate projects they can open.",
        "operationId": "duplicateProject",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "title": {
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectLifecycleResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Duplicate a project",
        "tags": [
          "project_lifecycle"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-mcp-equivalent": "duplicate_project",
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/realtime/daw-sync-sessions": {
      "get": {
        "description": "Whether projects' DAW sync rooms have people in them now, their codes and member counts, without joining (no socket). project_id=X: one project (viewer access or better; 404 for a project you cannot see). project_ids=a,b,c (at most 50): {data: [...]} with one row per project you can read, in the order given; ids you cannot read or that do not exist are left out (no error). live is true only while members > 0; an empty room within its 10-minute grace period answers live=false with its code and expires_at. Send exactly one of the two.",
        "operationId": "getDawSyncLiveStatus",
        "parameters": [
          {
            "description": "One Freestyle project.",
            "in": "query",
            "name": "project_id",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "description": "Comma-separated project ids (at most 50).",
            "in": "query",
            "name": "project_ids",
            "required": false,
            "schema": {
              "maxLength": 3250,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DawSyncLiveStatus"
                    },
                    {
                      "$ref": "#/components/schemas/DawSyncLiveStatusList"
                    }
                  ]
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "live:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Is a project's DAW sync room live",
        "tags": [
          "realtime"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "live:read"
      },
      "post": {
        "description": "A DAW sync room (Freestyle for Mac: several people's own DAWs editing one session). With project_id this is the project's ONE live room: its existing room (200, created=false) while it has members or is within its grace period, else a new one (201, created=true); concurrent calls get the same code. Access follows the project's share settings (owner, named collaborators, link/public visitors as the app treats them): anyone with at least viewer access may call this and join; viewers are read-only members (their ops, snapshot and transport frames are refused with editor_required). Without project_id a new code-only room is minted every call (201). Members open websocket_url (/api/ws/daw-sync) with Authorization: Bearer (scope live:write) and send {\"type\":\"join\",\"room\":code,\"peerId\":<device id>} first; see /docs/realtime.html#daw-sync. The room lives while it has members and for 10 minutes after the last one leaves (expires_at slides). 429 daw_sync_session_limit: you already created the maximum number of rooms (they expire on their own; returning a project's existing room never counts); 429 daw_sync_capacity: the server is full; 503 not_available: DAW sync is not served right now.",
        "operationId": "createDawSyncSession",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "project_id": {
                    "description": "Optional Freestyle project: returns its live room (viewer access or better required).",
                    "maxLength": 64,
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DawSyncSession"
                }
              }
            },
            "description": "The project's existing live room (created=false)."
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DawSyncSession"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "live:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get or create a DAW sync session",
        "tags": [
          "realtime"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "live:write"
      }
    },
    "/realtime/turn-credentials": {
      "get": {
        "description": "Short-lived TURN relay credentials (urls, username, credential, expiresAt) for the live audio WebRTC connection. Pass the session's dawBaseUrl as mozart_origin.",
        "operationId": "getTurnCredentials",
        "parameters": [
          {
            "in": "query",
            "name": "mozart_origin",
            "required": false,
            "schema": {
              "maxLength": 300,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TurnCredentials"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "audio:listen"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get TURN credentials",
        "tags": [
          "realtime"
        ],
        "x-freestyle-mcp-equivalent": "get_turn_credentials",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "audio:listen"
      }
    },
    "/region-effects": {
      "get": {
        "description": "Effects that preview / apply accept: id, label, description and a typed parameter schema per effect, plus limits and the processors that are NOT region-capable.",
        "operationId": "listRegionEffects",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegionEffectCatalog"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "daw:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List region effects",
        "tags": [
          "region_effects"
        ],
        "x-freestyle-mcp-equivalent": "list_region_effects",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "daw:read"
      }
    },
    "/sync/blobs/{sha256}": {
      "get": {
        "description": "Your view of one hash: stored (available to you), or the state of your own upload (uploading, verifying, rejected + reason). 404 when nothing is known to you. wait=N (seconds, at most 20) long-polls: while the state is uploading or verifying the answer is held until it changes (stored, rejected) or N seconds pass, then the current state is returned. At most 4 waiting requests per account and 32 per server: over that the answer is immediate (same body; just poll again).",
        "operationId": "getSyncBlob",
        "parameters": [
          {
            "in": "path",
            "name": "sha256",
            "required": true,
            "schema": {
              "description": "SHA-256 of the file's bytes, hex.",
              "pattern": "^[0-9a-fA-F]{64}$",
              "type": "string"
            }
          },
          {
            "description": "Long-poll up to this many seconds for the state to leave uploading / verifying.",
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "default": 0,
              "maximum": 20.0,
              "minimum": 0,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncBlob"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get a blob's state",
        "tags": [
          "sync"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "projects:read"
      }
    },
    "/sync/blobs/{sha256}/commit": {
      "post": {
        "description": "After Put Block List: checks that your staging object exists with the declared size and verifies it (SHA-256 and size of what you uploaded, executables refused, then the content-addressed copy). A blob of at most 4 MiB (DAW_FILE_SYNC_INLINE_VERIFY_MAX_BYTES) is verified inside this request: 200 state=stored, or 200 state=rejected with reason. Larger blobs, or a small one while the server is already verifying 4 others inline, are queued: 202 state=verifying; then getSyncBlob (wait=N long-polls) until stored or rejected (reason hash_mismatch, size_mismatch, executable_refused, upload_missing, upload_modified, verification_failed). A small blob can also answer 202 when storage was briefly unavailable (it is retried in the background). Repeating the call answers the current state.",
        "operationId": "commitSyncUpload",
        "parameters": [
          {
            "in": "path",
            "name": "sha256",
            "required": true,
            "schema": {
              "description": "SHA-256 of the file's bytes, hex.",
              "pattern": "^[0-9a-fA-F]{64}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncBlob"
                }
              }
            },
            "description": "Stored or rejected (verified inline, or already finished)."
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncBlob"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "media:upload"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Commit an uploaded blob for verification",
        "tags": [
          "sync"
        ],
        "x-freestyle-budgets": [
          {
            "bucket": "api_v1:sync_commit",
            "default": 6000,
            "perSeconds": 3600
          }
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "media:upload"
      }
    },
    "/sync/blobs/{sha256}/content": {
      "get": {
        "description": "302 to a short-lived (at most 10 minutes) read URL for the blob on storage, Content-Disposition: attachment; follow it (Range requests work there). Only when a version of a project you can read references this hash; 404 otherwise.",
        "operationId": "getSyncBlobContent",
        "parameters": [
          {
            "in": "path",
            "name": "sha256",
            "required": true,
            "schema": {
              "description": "SHA-256 of the file's bytes, hex.",
              "pattern": "^[0-9a-fA-F]{64}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "Location: the signed download URL."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Download a blob",
        "tags": [
          "sync"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "projects:read"
      }
    },
    "/sync/blobs/{sha256}/uploads": {
      "delete": {
        "description": "Abandon your open (or rejected) upload of this hash: its staging object and any uploaded blocks are discarded and it stops counting against your open-upload limit and quota. An upload you never commit otherwise counts until it expires (7 days). 409 state_conflict while it is verifying or once it is stored.",
        "operationId": "cancelSyncUpload",
        "parameters": [
          {
            "in": "path",
            "name": "sha256",
            "required": true,
            "schema": {
              "description": "SHA-256 of the file's bytes, hex.",
              "pattern": "^[0-9a-fA-F]{64}$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "media:upload"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Cancel an upload",
        "tags": [
          "sync"
        ],
        "x-freestyle-confirmation": "DELETE",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "media:upload"
      },
      "post": {
        "description": "Body {size}. When a verified blob with this hash is already available to you (you uploaded it, or a version you can read references it) the answer is 200 state=stored and there is nothing to upload. Otherwise 201 with uploadUrl: an Azure block-blob SAS (about 1 hour) for YOUR staging object. Upload straight to it: Put Block (blockSizeBytes pieces, base64 block ids of equal length) then Put Block List, or one Put Blob for small files; to resume, Get Block List (comp=blocklist&blocklisttype=uncommitted) on the same URL. Calling this again for the same hash returns a fresh URL for the SAME staging object. Then commitSyncUpload. Whether other users hold the same file is never revealed. 200 state=verifying while a commit is being checked.",
        "operationId": "openSyncUpload",
        "parameters": [
          {
            "in": "path",
            "name": "sha256",
            "required": true,
            "schema": {
              "description": "SHA-256 of the file's bytes, hex.",
              "pattern": "^[0-9a-fA-F]{64}$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "size": {
                    "description": "Bytes.",
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "size"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncUploadSession"
                }
              }
            },
            "description": "Already stored (nothing to upload) or verifying."
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncUploadSession"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "413": {
            "description": "file_too_large: larger than the per-file limit."
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "media:upload"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Start or resume a blob upload",
        "tags": [
          "sync"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "media:upload"
      }
    },
    "/sync/links": {
      "get": {
        "description": "Links of every project you own or were invited to (shared projects included), oldest first, with your role on each.",
        "operationId": "listSyncLinks",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/SyncLink"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List sync links",
        "tags": [
          "sync"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "projects:read"
      },
      "post": {
        "description": "Idempotent per project and DAW: 201 with created=true the first time, then 200 with the existing link. Editors and owners only (viewers 403 editor_required).",
        "operationId": "createSyncLink",
        "parameters": [
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "daw": {
                    "enum": [
                      "fl",
                      "logic",
                      "audacity",
                      "ableton",
                      "reaper"
                    ],
                    "type": "string"
                  },
                  "deviceId": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "deviceName": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "projectId": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "rootName": {
                    "description": "e.g. the .flp file name.",
                    "maxLength": 512,
                    "type": "string"
                  }
                },
                "required": [
                  "projectId",
                  "daw"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncLink"
                }
              }
            },
            "description": "The link already existed."
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncLink"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Link a DAW project folder to a project",
        "tags": [
          "sync"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/sync/links/{link_id}/versions": {
      "get": {
        "description": "Oldest first. after=<versionId> returns only later versions (by seq). When pagination.hasMore is true, pagination.nextCursor is the last versionId: pass it as after.",
        "operationId": "listSyncVersions",
        "parameters": [
          {
            "in": "path",
            "name": "link_id",
            "required": true,
            "schema": {
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "Only versions after this one.",
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "maxLength": 64,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/SyncVersion"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List versions",
        "tags": [
          "sync"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "projects:read"
      },
      "post": {
        "description": "Immutable. Every manifest hash must be available to you (uploaded and verified by you, or in a version you can read): otherwise 409 blobs_missing with details.missing. Paths must be relative with no '.' or '..' segments and no duplicates; root must be one of the files; each size must match its blob (400 blob_size_mismatch). parentVersionId must be a version of this link (400 invalid_parent) or null. Two versions with the same parent (both null included) are both kept and both reported with fork=true; nothing is merged or rejected. Followers of the link get version.created on /api/ws/daw-files. Editors and owners only.",
        "operationId": "createSyncVersion",
        "parameters": [
          {
            "in": "path",
            "name": "link_id",
            "required": true,
            "schema": {
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "description": "Makes a retry safe: the stored response is replayed for 24 h.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 128,
              "minLength": 8,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "daw": {
                    "description": "Defaults to the link's.",
                    "enum": [
                      "fl",
                      "logic",
                      "audacity",
                      "ableton",
                      "reaper"
                    ],
                    "type": "string"
                  },
                  "dawVersion": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "deviceId": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "deviceName": {
                    "maxLength": 128,
                    "type": "string"
                  },
                  "manifest": {
                    "$ref": "#/components/schemas/SyncManifest"
                  },
                  "message": {
                    "maxLength": 2000,
                    "type": "string"
                  },
                  "parentVersionId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "manifest"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "fork": {
                      "type": "boolean"
                    },
                    "seq": {
                      "type": "integer"
                    },
                    "versionId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "versionId",
                    "createdAt",
                    "seq",
                    "fork"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:write"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Create a version",
        "tags": [
          "sync"
        ],
        "x-freestyle-confirmation": "none",
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "projects:write"
      }
    },
    "/sync/links/{link_id}/versions/{version_id}": {
      "get": {
        "operationId": "getSyncVersion",
        "parameters": [
          {
            "in": "path",
            "name": "link_id",
            "required": true,
            "schema": {
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "version_id",
            "required": true,
            "schema": {
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncVersionDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "Get a version with its manifest",
        "tags": [
          "sync"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-scope": "projects:read"
      }
    },
    "/sync/projects/{project_id}/links": {
      "get": {
        "operationId": "listProjectSyncLinks",
        "parameters": [
          {
            "in": "path",
            "name": "project_id",
            "required": true,
            "schema": {
              "maxLength": 128,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "nextCursor from the previous page (same filters).",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "maxLength": 512,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/SyncLink"
                      },
                      "type": "array"
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "428": {
            "$ref": "#/components/responses/PreconditionRequired"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "$ref": "#/components/responses/EngineError"
          },
          "503": {
            "$ref": "#/components/responses/ServiceUnavailable"
          }
        },
        "security": [
          {
            "oauth2": [
              "projects:read"
            ]
          },
          {
            "studioSession": []
          }
        ],
        "summary": "List a project's sync links",
        "tags": [
          "sync"
        ],
        "x-freestyle-rate": "interactive",
        "x-freestyle-role": "viewer",
        "x-freestyle-scope": "projects:read"
      }
    }
  },
  "servers": [
    {
      "url": "/api/v1"
    }
  ],
  "tags": [
    {
      "description": "Mozart AI. Natural-language Mozart AI commands, undo, and background generation jobs. Metered as Mozart AI usage.",
      "name": "ai"
    },
    {
      "description": "Automation. Automation envelopes on clips, pattern placements ('pattern:<id>'), the backing ('backing:<id>') and lanes (fader / pan): clip gain, plugin-parameter, lane volume and lane pan curves with full-precision points.",
      "name": "automation"
    },
    {
      "description": "Buses. Mixer buses, lane routing and bus plugin state.",
      "name": "buses"
    },
    {
      "description": "Catalog. Global read-only search: sounds, Splice, effect / vocal chain / plug-in presets, drum kits, beats and the marketplace, paged and filtered to what the caller may see.",
      "name": "catalog"
    },
    {
      "description": "Clips. Audio clips on the timeline: listing, waveforms and atomic edits.",
      "name": "clips"
    },
    {
      "description": "Engine actions. Typed gateway to every live-engine (Pro catalog) action.",
      "name": "engine"
    },
    {
      "description": "Engine state. Live engine state (tracks, mix, clips, buses, transport, history) and MIDI audition.",
      "name": "engine_state"
    },
    {
      "description": "Exports. Full-mix renders through Mozart: start, poll and list with signed download links.",
      "name": "exports"
    },
    {
      "description": "History. The live engine's native undo/redo history.",
      "name": "history"
    },
    {
      "description": "Instruments. The instrument catalog and instrument lanes created from it.",
      "name": "instruments"
    },
    {
      "description": "Lane management. Create, edit, delete, restore, duplicate and reorder timeline lanes.",
      "name": "lane_management"
    },
    {
      "description": "Lanes. Timeline lanes (tracks) of a project.",
      "name": "lanes"
    },
    {
      "description": "Listen. Hear a project: rendered + measured excerpts and the shared listen-page preview.",
      "name": "listen"
    },
    {
      "description": "Markers. Playlist time markers and loop markers (ticks @ 96 PPQ), one revisioned list per project.",
      "name": "markers"
    },
    {
      "description": "Media. Audio uploads and imports, attaching stored clips to the live session, and the Sound Library.",
      "name": "media"
    },
    {
      "description": "Mixer. Lane faders, pan, mute/solo and the project's master output fader.",
      "name": "mixer"
    },
    {
      "description": "Native EQ. Typed band reads and writes of a lane's EQ (the lane EQ stage and native EQ plug-ins on its chain) and a pattern placement's EQ.",
      "name": "native_eq"
    },
    {
      "description": "Pattern samples. Channel Rack / pattern one-shot samples of a project.",
      "name": "pattern_samples"
    },
    {
      "description": "Patterns. Step/piano-roll patterns, their timeline placements, splits and previews.",
      "name": "patterns"
    },
    {
      "description": "Plug-in catalog. The plug-in catalog (catalog ids, kinds, formats, presets, host availability), adding and removing plug-ins by catalog id, and plug-in parameter discovery.",
      "name": "plugin_catalog"
    },
    {
      "description": "Plugins. Lane and bus plugin chains, parameters, presets, saved state, native effects and plugin editor windows.",
      "name": "plugins"
    },
    {
      "description": "Project lifecycle. Create, rename, duplicate and delete projects; saves (version history); share settings and collaborators.",
      "name": "project_lifecycle"
    },
    {
      "description": "Projects. Projects the caller owns or that are shared with them, with their role.",
      "name": "projects"
    },
    {
      "description": "Realtime. Interactive-session tickets for the editing WebSocket, live WebRTC monitoring (TURN, SDP offer) and live microphone ingest.",
      "name": "realtime"
    },
    {
      "description": "Recording. Start, finalize and inspect a live recording take on the engine.",
      "name": "recording"
    },
    {
      "description": "Region effects. Audacity-style \"select, then Effect\" on a region of one clip: catalog, non-destructive preview, and apply as a job.",
      "name": "region_effects"
    },
    {
      "description": "Sample edits. Audacity Draw-tool (pencil) edits of a clip's source samples, copy-on-write, with one-step undo.",
      "name": "sample_edits"
    },
    {
      "description": "Stems. Stem splitter: separate a clip or the backing into stem lanes on the GPU, poll the job, and undo exactly what it created.",
      "name": "stems"
    },
    {
      "description": "Sync. DAW project-file sync for Freestyle for Mac: links between a project and a DAW folder, immutable content-addressed versions, and direct-to-storage blob uploads and downloads.",
      "name": "sync"
    },
    {
      "description": "Timing. Tempo map (ticks @ 96 PPQ, constant / linear-ramp segments), meter map (bars, n/d, accent groups, pickup), pattern meters, musical-time conversion and the scalar tempo.",
      "name": "timing"
    },
    {
      "description": "Transport. Live Mozart transport of a project's session (play/pause/seek/range/loop).",
      "name": "transport"
    }
  ]
}
