Streamloop

Manage cloud-hosted 24/7 video streams, playlists, destinations, schedules, media and workspaces.

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
96%
Integridad del esquema
84%
Calidad de los nombres
90%
Riesgo de envenenamiento
100%
Coincidencia de permisos
90%
Cumplimiento del protocolo
100%

Hallazgos (3)

  • LOWTool 'stream_update_youtube_broadcast_settings' name length outside 3-30 rangeen stream_update_youtube_broadcast_settings
  • LOWTool 'destination_create_youtube_oauth' name length outside 3-30 rangeen destination_create_youtube_oauth
  • LOWTool 'upload_get_upload_url' suggests web access but openWorldHint=falseen upload_get_upload_url

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~14,138Tokens (definiciones de herramientas)
~2.7 KBTamaño de respuesta típico
Impacto significativo en la atención (11.05% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.streamloop.app/mcp"
    }
  }
}

Puntos de conexión remotos

https://mcp.streamloop.app/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (42)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢stream_list(id, name, status, sort, first, ...)

List streams filtered by status, id, name and return their quick overview.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^stream_"
    },
    "name": {
      "description": "Part of the name, case-insensitive.",
      "type": "string"
    },
    "status": {
      "description": "active: live or starting. scheduled: waiting for its start time. inactive: neither.",
      "type": "string",
      "enum": [
        "active",
        "scheduled",
        "inactive"
      ]
    },
    "sort": {
      "default": "newest",
      "description": "By creation time.",
      "type": "string",
      "enum": [
        "newest",
        "oldest"
      ]
    },
    "first": {
      "default": 20,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "after": {
      "description": "nextCursor of the previous page.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "items": {},
        "nextCursor": {},
        "hasMore": {},
        "total": {}
      },
      "required": [
        "items",
        "nextCursor",
        "hasMore",
        "total"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢stream_get(id)

Get stream (loop) information, use it to get its current state, enabled destinations and configuration.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^stream_"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "name": {},
        "state": {},
        "kind": {},
        "schedule": {},
        "outputs": {},
        "videoPlaylistId": {},
        "audioPlaylistId": {},
        "sceneId": {},
        "youtubeLiveStats": {},
        "problem": {},
        "issues": {}
      },
      "required": [
        "id",
        "name",
        "state",
        "kind",
        "schedule",
        "outputs",
        "videoPlaylistId",
        "audioPlaylistId",
        "sceneId",
        "youtubeLiveStats",
        "problem"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡stream_create(name, kind)

Create a new stream. You can create stream for pre-recorded videos or live scene stream (supports pre-recorded videos too). Live scene is used for more complex setups to include features like overlays, layouts, multiple inputs, and so on. Afterwards, use stream_update to set its quality and framerate (a new stream has none, and cannot start without them), stream_add_output to link destination, scene_* to manage linked scene and playlist_* to manage playlists linked to the stream.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "kind": {
      "type": "string",
      "enum": [
        "pre_recorded",
        "scene"
      ]
    }
  },
  "required": [
    "name",
    "kind"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "kind": {},
        "sceneId": {}
      },
      "required": [
        "id",
        "kind",
        "sceneId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡stream_create_copy(id, name)

Copies a stream into a new draft: its settings, playlists (items and playing order), linked destinations and YouTube settings; never its schedule. A scene stream's copy plays the same scene as the original, not a copy of it: editing the scene changes both. `copied` lists what was carried over.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^stream_",
      "description": "The stream to copy."
    },
    "name": {
      "description": "Name of the copy. Omitted: the original's name with \"(copy)\".",
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "copied": {}
      },
      "required": [
        "id",
        "copied"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡stream_update(id, name, quality, framerate, streamDuration, ...)

Updates stream configuration. Quality and framerate: not while live.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^stream_"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "quality": {
      "description": "Output resolution. Higher costs more credits per minute.",
      "type": "string",
      "enum": [
        "q_720p",
        "q_1080p",
        "q_1440p",
        "q_2160p"
      ]
    },
    "framerate": {
      "type": "string",
      "enum": [
        "f_24",
        "f_25",
        "f_30",
        "f_60"
      ]
    },
    "streamDuration": {
      "description": "Seconds a session runs before it stops by itself, for manual starts and schedules alike: stream_schedule durationSeconds writes this same value. 0: until stopped.",
      "type": "integer",
      "minimum": 0,
      "maximum": 31536000
    },
    "storageBackend": {
      "description": "No effect: storage follows the playlist size by itself. Kept so older clients do not break.",
      "type": "string",
      "enum": [
        "standard",
        "large"
      ]
    },
    "runBackupStream": {
      "description": "Dual stream: also publish to YouTube's backup ingest in parallel. Adds 40% of the stream's price while live.",
      "type": "boolean"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {}
      },
      "required": [
        "id"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡stream_update_youtube_broadcast_settings(id, title, description, privacy, madeForKids, ...)

Updates YouTube broadcast settings (only when has linked YouTube channel using Oauth).

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^stream_"
    },
    "title": {
      "type": "string",
      "maxLength": 100
    },
    "description": {
      "type": "string",
      "maxLength": 5000
    },
    "privacy": {
      "type": "string",
      "enum": [
        "public",
        "unlisted",
        "private"
      ]
    },
    "madeForKids": {
      "description": "Required by YouTube before a stream can start. Ask the user, never assume.",
      "type": "string",
      "enum": [
        "unspecified",
        "yes",
        "no"
      ]
    },
    "ageRestricted": {
      "type": "string",
      "enum": [
        "unspecified",
        "yes",
        "no"
      ]
    },
    "category": {
      "type": "string",
      "enum": [
        "Film & Animation",
        "Autos & Vehicles",
        "Music",
        "Pets & Animals",
        "Sports",
        "Travel & Events",
        "Gaming",
        "People & Blogs",
        "Comedy",
        "Entertainment",
        "News & Politics",
        "Howto & Style",
        "Education",
        "Science & Technology",
        "Nonprofits & Activism"
      ]
    },
    "latencyPreference": {
      "type": "string",
      "enum": [
        "normal",
        "low",
        "ultra_low"
      ]
    },
    "enableDvr": {
      "description": "Viewers can pause and rewind.",
      "type": "boolean"
    },
    "recordFromStart": {
      "description": "Keep the broadcast as a video after it ends.",
      "type": "boolean"
    },
    "adFrequency": {
      "description": "Mid-roll ad breaks. Partner Program channels only.",
      "type": "string",
      "enum": [
        "off",
        "conservative",
        "balanced",
        "aggressive"
      ]
    },
    "thumbnailSource": {
      "description": "auto: a frame of the first video. custom: thumbnailObjectID. none: YouTube's own.",
      "type": "string",
      "enum": [
        "auto",
        "custom",
        "none"
      ]
    },
    "thumbnailObjectID": {
      "description": "An uploaded image, for thumbnailSource custom.",
      "type": "string",
      "pattern": "^obj_"
    },
    "tags": {
      "description": "Replaces the current tags.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "defaultLanguage": {
      "description": "Language of the title, e.g. en, es-MX.",
      "type": "string"
    },
    "defaultAudioLanguage": {
      "description": "Spoken language, e.g. en, es-MX.",
      "type": "string"
    },
    "embeddable": {
      "type": "boolean"
    },
    "scheduleOnYoutubeWhenScheduled": {
      "description": "Show the broadcast as upcoming on the channel as soon as the stream is scheduled.",
      "type": "boolean"
    },
    "retryMirror": {
      "description": "Copy the stream's schedule onto YouTube again, e.g. after reconnecting the channel.",
      "type": "boolean"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "youtubeSettings": {},
        "mirrorRetried": {}
      }
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🔴stream_remove(id)

Deletes a stream with its playlists and schedule. Uploaded media and destinations are kept. A scene stream's scene is deleted with it unless another stream plays that scene. Refused with STREAM_LIVE while it is on air: stop it first. A stream already deleted is NOT_FOUND.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^stream_"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "deleted": {},
        "id": {},
        "sceneDeleted": {}
      },
      "required": [
        "deleted",
        "id"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡stream_add_output(streamId, destinationId)

Links a destination to the stream. Up to 5 per stream, disabled ones included, and one YouTube channel connected through OAuth at most (RTMP destinations to YouTube are not counted). Not while live.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "streamId": {
      "type": "string",
      "pattern": "^stream_"
    },
    "destinationId": {
      "type": "string",
      "pattern": "^dest_"
    }
  },
  "required": [
    "streamId",
    "destinationId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "outputs": {}
      },
      "required": [
        "id",
        "outputs"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🔴stream_remove_output(streamId, destinationId)

Unlinks a destination from the stream; one that is not linked is left as it is. Not while live; use stream_toggle_output.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "streamId": {
      "type": "string",
      "pattern": "^stream_"
    },
    "destinationId": {
      "type": "string",
      "pattern": "^dest_"
    }
  },
  "required": [
    "streamId",
    "destinationId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "outputs": {}
      },
      "required": [
        "id",
        "outputs"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🔴stream_toggle_output(streamId, destinationId, enabled)

Enables or disables a linked destination without unlinking it. Disabling works while live and takes that destination off air; enabling does not work while live.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "streamId": {
      "type": "string",
      "pattern": "^stream_"
    },
    "destinationId": {
      "type": "string",
      "pattern": "^dest_"
    },
    "enabled": {
      "type": "boolean"
    }
  },
  "required": [
    "streamId",
    "destinationId",
    "enabled"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "outputs": {}
      },
      "required": [
        "id",
        "outputs"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡stream_schedule(streamId, startAt, endAt, durationSeconds, repeat, ...)

Schedules the stream to start at a set time, optionally with an end and a repeat. Replaces any existing schedule.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "streamId": {
      "type": "string",
      "pattern": "^stream_"
    },
    "startAt": {
      "type": "string",
      "format": "date-time",
      "description": "Start time with the user's UTC offset, e.g. 2026-09-22T06:00:00-04:00. No offset: refused."
    },
    "endAt": {
      "type": "string",
      "format": "date-time",
      "description": "When a session ends. Needed for daily and weekly. Omitted: runs until stopped."
    },
    "durationSeconds": {
      "description": "Instead of endAt: a session ends this long after going live. Required for restart, where it is at least 600. Stored as the stream's streamDuration, so it also ends manual starts and stays after stream_cancel_schedule; stream_update streamDuration 0 removes it.",
      "type": "integer",
      "minimum": 60
    },
    "repeat": {
      "description": "What happens after a session ends. none: nothing. daily / weekly: the same session again at the same time. restart: run for durationSeconds, stop, wait restartGapSeconds, start a new session, and so on until stopped; e.g. restart every 12 hours with a 30 s break is durationSeconds 43200, restartGapSeconds 30.",
      "type": "string",
      "enum": [
        "none",
        "daily",
        "weekly",
        "restart"
      ]
    },
    "days": {
      "description": "weekly: weekdays to start on, in UTC. Omitted: every 7 days.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "SUNDAY",
          "MONDAY",
          "TUESDAY",
          "WEDNESDAY",
          "THURSDAY",
          "FRIDAY",
          "SATURDAY"
        ]
      }
    },
    "restartGapSeconds": {
      "description": "restart: seconds between one session ending and the next starting. 0: right away.",
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "streamId",
    "startAt"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "stream": {},
        "scheduledUTC": {}
      },
      "required": [
        "stream",
        "scheduledUTC"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🔴stream_cancel_schedule(streamId)

Removes the stream's schedule and repeat. A live session keeps running. The stream's streamDuration stays (stream_update streamDuration 0 removes it).

Esquema de entrada

{
  "type": "object",
  "properties": {
    "streamId": {
      "type": "string",
      "pattern": "^stream_"
    }
  },
  "required": [
    "streamId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {}
      },
      "required": [
        "id"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢stream_start(streamId)

Starts the stream now. It answers at once with state preparing; the stream goes preparing, activating, then active (on air) within about a minute: read it with stream_get, which also says why when it fails. Refused with STREAM_NOT_READY and the issues to fix when it is not ready, and while it is already starting or running.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "streamId": {
      "type": "string",
      "pattern": "^stream_"
    }
  },
  "required": [
    "streamId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "state": {}
      },
      "required": [
        "id",
        "state"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🔴stream_stop(streamId, cancelSchedule)

Stops the stream: it goes off air on every destination and stops spending credits. Media, playlists and settings are kept. A schedule starts it again unless `cancelSchedule` is set. A scheduled stream that is not running yet is left as it is, unless `cancelSchedule` is set.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "streamId": {
      "type": "string",
      "pattern": "^stream_"
    },
    "cancelSchedule": {
      "description": "Also remove its schedule, so a repeat does not start it again.",
      "type": "boolean"
    }
  },
  "required": [
    "streamId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {}
      },
      "required": [
        "id"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢stream_preflight_check(streamId)

Checks whether the stream can start, including whether the workspace has the credits for it, and returns the blocking issues with how to fix each. A few show only once an earlier one is fixed (sound is checked once there is video), so check again after fixing. It does not contact the destination: a wrong stream key shows only when the stream starts.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "streamId": {
      "type": "string",
      "pattern": "^stream_"
    }
  },
  "required": [
    "streamId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "ready": {},
        "issues": {}
      },
      "required": [
        "ready",
        "issues"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢destination_list(id, name, kind, sort)

Lists destinations (YouTube channels and custom RTMP endpoints) with their status. Stream keys are never returned.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^dest_"
    },
    "name": {
      "description": "Part of the name, case-insensitive.",
      "type": "string"
    },
    "kind": {
      "description": "Filter destinations by either youtube_oauth (direct YouTube connection) or rtmp (includes YouTube as well, but by RTMP keys).",
      "type": "string",
      "enum": [
        "youtube_oauth",
        "rtmp"
      ]
    },
    "sort": {
      "default": "newest",
      "description": "By creation time.",
      "type": "string",
      "enum": [
        "newest",
        "oldest"
      ]
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "items": {},
        "total": {}
      },
      "required": [
        "items",
        "total"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢destination_connection_hints(platform)

Returns how to connect a platform: its RTMP ingest URL, where the user finds the stream key, and platform limits. Use it before destination_create_rtmp; never guess an ingest URL.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "youtube",
        "twitch",
        "facebook",
        "x",
        "kick",
        "tiktok",
        "linkedin",
        "telegram",
        "other"
      ]
    }
  },
  "required": [
    "platform"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "platform": {},
        "displayName": {},
        "methods": {},
        "whereToFindTheKey": {},
        "gotchas": {}
      },
      "required": [
        "platform",
        "displayName",
        "methods",
        "whereToFindTheKey",
        "gotchas"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡destination_create_rtmp(name, rtmpUrl, rtmpKey)

Creates a destination from an RTMP URL and stream key (Twitch, Kick, Facebook, any RTMP server). A stream key backs one destination: the same key again is refused with the existing destination's id. The URL cannot be changed later (remove the destination and create it again); the key can, with destination_update. `rtmpUrl` is shown by destination_list, so the key goes in `rtmpKey`, never in the URL.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "rtmpUrl": {
      "type": "string",
      "pattern": "^rtmps?://"
    },
    "rtmpKey": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "name",
    "rtmpUrl",
    "rtmpKey"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "name": {},
        "kind": {},
        "status": {}
      },
      "required": [
        "id",
        "name",
        "kind",
        "status"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡destination_create_youtube_oauth(channelId, name)

Connects a YouTube channel through Google OAuth. Without `channelId` returns the consent URL for the user to open (valid for about 10 minutes), `channels` (authorized, with no destination yet: pass one's `channelId` to create it) and `connected` (channels that already are destinations); with `channelId` creates the destination.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "channelId": {
      "description": "From this tool's previous answer.",
      "type": "string",
      "minLength": 1
    },
    "name": {
      "description": "With channelId only. Omitted: the channel title.",
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "authorizationUrl": {},
        "channels": {},
        "connected": {},
        "id": {}
      }
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡destination_update(id, name, rtmpKey)

Renames a destination or replaces its RTMP stream key. A live stream uses the new key after a restart.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^dest_"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "rtmpKey": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "name": {},
        "kind": {},
        "status": {}
      },
      "required": [
        "id",
        "name",
        "kind",
        "status"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🔴destination_remove(id)

Removes a destination from the workspace; it no longer appears in destination_list, and every stream it was linked to loses that output (stream_get lists a stream's outputs). Refused while a live stream uses it. The channel or RTMP server itself is not touched.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^dest_"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "removed": {},
        "id": {}
      },
      "required": [
        "removed",
        "id"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢playlist_get(id, first, after)

Returns a playlist: its version, playing order (`mode`) and items (item id, media id, name, duration). Items come in their stored order: shuffle and custom play them in another order without reordering them here. Playlist ids come from stream_get.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^pl_"
    },
    "first": {
      "default": 100,
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "after": {
      "description": "nextCursor of the previous page.",
      "type": "string"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "kind": {},
        "version": {},
        "mode": {},
        "customOrderId": {},
        "items": {},
        "nextCursor": {},
        "hasMore": {},
        "total": {}
      },
      "required": [
        "id",
        "kind",
        "version",
        "mode",
        "customOrderId",
        "items",
        "nextCursor",
        "hasMore",
        "total"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡playlist_patch(playlistId, patch, live)

Adds, removes and reorders playlist items with a JSON Patch (RFC 6902) over the document playlist_get returns. All operations apply or none. Media must be ready (upload_get_import_job_state) and of the playlist's kind: video in a video playlist, audio in an audio one. `test` checks /version only, and refuses the patch with CONFLICT when the playlist changed since it was read.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "playlistId": {
      "type": "string",
      "pattern": "^pl_"
    },
    "patch": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "op": {
            "type": "string",
            "enum": [
              "add",
              "remove",
              "move",
              "replace",
              "test"
            ]
          },
          "path": {
            "type": "string",
            "pattern": "^/(items/(\\d+|-)|version)$",
            "description": "/items/<index>, /items/- (end), or /version (test only)."
          },
          "from": {
            "description": "move only.",
            "type": "string",
            "pattern": "^/items/\\d+$"
          },
          "value": {
            "description": "add, replace: {\"objectId\":\"obj_…\"}. test: the version from playlist_get."
          }
        },
        "required": [
          "op",
          "path"
        ],
        "additionalProperties": false
      },
      "examples": [
        [
          {
            "op": "add",
            "path": "/items/-",
            "value": {
              "objectId": "obj_123"
            }
          },
          {
            "op": "move",
            "from": "/items/4",
            "path": "/items/0"
          }
        ]
      ]
    },
    "live": {
      "description": "Apply to the running stream now. Omitted: a live stream keeps its current playlist until restarted.",
      "type": "boolean"
    }
  },
  "required": [
    "playlistId",
    "patch"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "kind": {},
        "version": {},
        "mode": {},
        "customOrderId": {},
        "items": {},
        "nextCursor": {},
        "hasMore": {},
        "total": {},
        "live": {}
      },
      "required": [
        "id",
        "kind",
        "version",
        "mode",
        "customOrderId",
        "items",
        "nextCursor",
        "hasMore",
        "total"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
⚪playlist_copy(sourcePlaylistId, targetPlaylistId)

Copies all items of one playlist into another, empty one of the same kind. The target also takes the source's sequential or shuffle setting; a custom order is never copied.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "sourcePlaylistId": {
      "type": "string",
      "pattern": "^pl_"
    },
    "targetPlaylistId": {
      "type": "string",
      "pattern": "^pl_",
      "description": "Must be empty."
    }
  },
  "required": [
    "sourcePlaylistId",
    "targetPlaylistId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "kind": {},
        "version": {},
        "mode": {},
        "customOrderId": {},
        "items": {},
        "nextCursor": {},
        "hasMore": {},
        "total": {}
      },
      "required": [
        "id",
        "kind",
        "version",
        "mode",
        "customOrderId",
        "items",
        "nextCursor",
        "hasMore",
        "total"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡playlist_set_playing_order(playlistId, mode, customOrderId)

Sets how a playlist plays: in order, shuffled, or by a custom order. See custom_order_* to create an arbitrary order defined by a script: it can pick the next item based on the time, the previously played item, and so on. For custom, `picks` are the first items it plays over the playlist as it is now (`id` is the media id) and `warnings` what the order could not do with this playlist.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "playlistId": {
      "type": "string",
      "pattern": "^pl_"
    },
    "mode": {
      "type": "string",
      "enum": [
        "sequential",
        "shuffle",
        "custom"
      ]
    },
    "customOrderId": {
      "description": "Required for custom.",
      "type": "string",
      "pattern": "^oseq_"
    }
  },
  "required": [
    "playlistId",
    "mode"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "playlistId": {},
        "version": {},
        "mode": {},
        "customOrderId": {},
        "picks": {},
        "warnings": {}
      },
      "required": [
        "playlistId",
        "version",
        "mode",
        "customOrderId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢custom_order_list(id, name, sort)

Lists custom orders (playing-order rules written from a text description), or returns one with its rules when `id` is given.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^oseq_"
    },
    "name": {
      "description": "Part of the name, case-insensitive.",
      "type": "string"
    },
    "sort": {
      "default": "newest",
      "description": "By creation time.",
      "type": "string",
      "enum": [
        "newest",
        "oldest"
      ]
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "items": {},
        "total": {},
        "hasMore": {},
        "id": {},
        "name": {},
        "description": {},
        "createdAt": {},
        "rules": {},
        "status": {},
        "ready": {},
        "next": {},
        "reply": {},
        "error": {},
        "diagnostics": {},
        "versions": {},
        "playlists": {}
      }
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡custom_order_create(name, intent, playlistId)

Creates a custom order from a description of how the playlist should play, e.g. "start with the intro, never two songs in a row". Apply it with playlist_set_playing_order.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "intent": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8192,
      "description": "How it should play, in the user's words."
    },
    "playlistId": {
      "description": "The playlist it is for, so rules can name its items.",
      "type": "string",
      "pattern": "^pl_"
    }
  },
  "required": [
    "name",
    "intent"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "name": {},
        "status": {},
        "ready": {},
        "next": {},
        "reply": {},
        "diagnostics": {},
        "version": {},
        "playlistsUpdated": {},
        "warnings": {}
      },
      "required": [
        "id",
        "name",
        "status",
        "ready",
        "reply",
        "diagnostics",
        "version"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
⚪custom_order_refine(id, message)

Changes a custom order with an instruction in words. Playlists using it pick up the change.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^oseq_"
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8192,
      "description": "The change, in the user's words."
    }
  },
  "required": [
    "id",
    "message"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "name": {},
        "status": {},
        "ready": {},
        "next": {},
        "reply": {},
        "diagnostics": {},
        "version": {},
        "playlistsUpdated": {},
        "warnings": {}
      },
      "required": [
        "id",
        "name",
        "status",
        "ready",
        "reply",
        "diagnostics",
        "version"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢upload_list(name, type, sort, first, after)

Lists uploaded media (video, audio, images) with size, duration (milliseconds) and whether it is ready to play.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "name": {
      "description": "Part of the name, case-insensitive.",
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "video",
        "audio",
        "image"
      ]
    },
    "sort": {
      "default": "newest",
      "description": "By creation time.",
      "type": "string",
      "enum": [
        "newest",
        "oldest"
      ]
    },
    "first": {
      "default": 20,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "after": {
      "description": "nextCursor of the previous page.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "items": {},
        "nextCursor": {},
        "hasMore": {},
        "total": {}
      },
      "required": [
        "items",
        "nextCursor",
        "hasMore",
        "total"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡upload_get_upload_url(name, type, mimeType, fileSize, multipart)

Creates a media record and returns the URL(s) to PUT the file to; the URLs stop working after 11 hours. After the PUT (after the last part, for multipart) call upload_get_import_job_state until it reports ready: that also assembles a multipart upload. For a file that is already online, use upload_import_from_url.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "File name with its extension, e.g. intro.mp4; at most 255 characters."
    },
    "type": {
      "type": "string",
      "enum": [
        "video",
        "audio",
        "image"
      ]
    },
    "mimeType": {
      "type": "string",
      "description": "e.g. video/mp4. The PUT must send it as Content-Type."
    },
    "fileSize": {
      "type": "integer",
      "minimum": 1,
      "description": "Bytes. A file that lands larger than this is refused and deleted. At most 15 GB (16,106,127,360); a file larger than declared is refused when the upload completes."
    },
    "multipart": {
      "description": "true: one URL per part, at most 100; PUT partSize bytes to each in order (the last part takes the rest). Files over 5 GB always get parts. Default false: one PUT.",
      "type": "boolean"
    }
  },
  "required": [
    "name",
    "type",
    "mimeType",
    "fileSize"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "uploadUrl": {},
        "uploadId": {},
        "partSize": {},
        "parts": {}
      },
      "required": [
        "id"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡upload_import_from_url(url, maxHeight, startSeconds, endSeconds)

Imports media from a URL: a video page (YouTube, Vimeo, Twitch, …) or a direct file link. Runs in the background; follow it with upload_get_import_job_state.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    },
    "maxHeight": {
      "type": "integer",
      "enum": [
        360,
        480,
        720,
        1080,
        1440,
        2160
      ],
      "description": "Omitted: best quality."
    },
    "startSeconds": {
      "description": "Import from this point.",
      "type": "number",
      "minimum": 0
    },
    "endSeconds": {
      "description": "Import up to this point.",
      "type": "number",
      "exclusiveMinimum": 0
    }
  },
  "required": [
    "url"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "name": {},
        "type": {},
        "ready": {}
      },
      "required": [
        "id",
        "name",
        "type",
        "ready"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢upload_get_import_job_state(id)

Returns whether media is ready to play, for an import and for a direct upload alike: progress and error, then its duration (milliseconds) and resolution (null when not measured). `ready` is true only once the file has been analysed; call again while it is false and `error` is null. status `failed` with an `error` is final: the file is not usable; remove it with upload_remove.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^obj_"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {},
        "name": {},
        "type": {},
        "ready": {},
        "status": {},
        "progress": {},
        "error": {},
        "duration": {},
        "width": {},
        "height": {},
        "fps": {},
        "hasVideo": {},
        "hasAudio": {}
      },
      "required": [
        "id",
        "name",
        "type",
        "ready",
        "status",
        "progress",
        "error",
        "duration",
        "width",
        "height",
        "fps",
        "hasVideo",
        "hasAudio"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🔴upload_remove(id)

Deletes media: video, audio or an image. Refused with IN_USE, naming what uses it when known, while a playlist uses it; an image also while it is a stream's YouTube thumbnail or while the workspace has scenes. Media already removed answers removed:true again.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^obj_"
    }
  },
  "required": [
    "id"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "removed": {},
        "id": {}
      },
      "required": [
        "removed",
        "id"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢account_get

Returns the account, its workspace and its money. `billing.balance` is US dollars and `creditsLeft` the same amount in credits (1,000,000 credits = $1); `goodStanding` false means streams cannot start until credits are added. `spend` is the burn rate now and `running` each stream that is on air now, with its cost so far. `rates` is the price per quality and frame rate, in credits per minute.

Esquema de entrada

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "account": {},
        "workspace": {},
        "billing": {},
        "spend": {},
        "running": {},
        "rates": {}
      },
      "required": [
        "account",
        "workspace",
        "billing",
        "spend",
        "running",
        "rates"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢scene_get(sceneId, path, paths, state, revision, ...)

Reads a live scene by path. Start with `*`: it returns the resource types (frame, source, component, element, …) and their definitions, which describe everything else. Reads the draft unless `state` or `revision` is given.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "sceneId": {
      "type": "string",
      "pattern": "^scn_",
      "description": "From stream_get."
    },
    "path": {
      "description": "*, a type (element/Text), a resource (frame/intro), or a mask (frame/*).",
      "type": "string"
    },
    "paths": {
      "description": "Instead of path: several paths read in one call, e.g. every element type a task needs. Each is answered as path would be, or with its error. Draft only, no pictures.",
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "state": {
      "default": "draft",
      "type": "string",
      "enum": [
        "draft",
        "published"
      ]
    },
    "revision": {
      "type": "integer",
      "minimum": 1,
      "description": "A published revision from scene_list_revisions."
    },
    "as": {
      "description": "For a frame or one of its layers. image: a picture of it as it goes on air, to check the result. json: the frame as a tree of layers instead of code.",
      "type": "string",
      "enum": [
        "image",
        "json"
      ]
    },
    "at": {
      "description": "With as image: milliseconds since the frame went on air (to see an animation's later moment).",
      "type": "number",
      "minimum": 0
    },
    "overlay": {
      "description": "With as image: a guide drawn over the picture. grid: lines every 10 %; ids: each layer's outline and id.",
      "type": "string",
      "enum": [
        "grid",
        "ids"
      ]
    },
    "data": {
      "description": "With as image: live reads the sources now, sample uses their sample rows.",
      "type": "string",
      "enum": [
        "live",
        "sample"
      ]
    }
  },
  "required": [
    "sceneId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "summary": {},
        "value": {},
        "image": {},
        "draftRevision": {},
        "revision": {}
      },
      "required": [
        "summary"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟡scene_set(sceneId, path, replace, merge, basedOnVersionId)

Creates or changes one resource in the scene draft. `replace` writes the whole resource (read its type with scene_get first for the shape); `merge` changes only the fields given and keeps the rest. Send one of them. Where a scene_get answer says `value` or `edits`, that is `replace` and `merge` here. Viewers see changes after scene_publish.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "sceneId": {
      "type": "string",
      "pattern": "^scn_"
    },
    "path": {
      "type": "string",
      "description": "e.g. frame/intro, source/data/headlines."
    },
    "replace": {
      "description": "The whole resource, shaped as scene_get returns it; a field left out is cleared. Creates the path when it does not exist.",
      "type": "object"
    },
    "merge": {
      "description": "Only the fields to change, merged into the existing resource; null removes a field. E.g. {\"props\":{\"value\":\"New headline\"}} on frame/intro/headline keeps its position and style.",
      "type": "object"
    },
    "basedOnVersionId": {
      "description": "Optional safety check: the `revision` from scene_get or from the last scene_set answer for this path. With it the change is refused (CONFLICT) if the resource changed since. Omitted: writes over whatever is there.",
      "type": "string"
    }
  },
  "required": [
    "sceneId",
    "path"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "summary": {},
        "path": {},
        "revision": {},
        "created": {},
        "diff": {},
        "draftRevision": {}
      },
      "required": [
        "summary",
        "path",
        "revision",
        "created",
        "diff",
        "draftRevision"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🔴scene_remove(sceneId, path)

Removes a resource from the scene draft. Refused when something else uses it.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "sceneId": {
      "type": "string",
      "pattern": "^scn_"
    },
    "path": {
      "type": "string"
    }
  },
  "required": [
    "sceneId",
    "path"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "summary": {},
        "removed": {},
        "draftRevision": {}
      },
      "required": [
        "summary",
        "removed",
        "draftRevision"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢scene_list_revisions(sceneId)

Lists the scene's published revisions, newest first.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "sceneId": {
      "type": "string",
      "pattern": "^scn_"
    }
  },
  "required": [
    "sceneId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "revisions": {}
      },
      "required": [
        "revisions"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🔴scene_publish(sceneId)

Publishes the scene draft; streams playing the scene show it at once. Refused with SCENE_INVALID and the problems to fix.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "sceneId": {
      "type": "string",
      "pattern": "^scn_"
    }
  },
  "required": [
    "sceneId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "summary": {},
        "revision": {},
        "publishedAt": {}
      },
      "required": [
        "summary",
        "revision",
        "publishedAt"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🔴scene_rollback_to_revision(sceneId, revision)

Publishes an earlier revision again as a new revision; streams playing the scene show it at once. The draft is not changed: it still holds the latest edits.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "sceneId": {
      "type": "string",
      "pattern": "^scn_"
    },
    "revision": {
      "type": "integer",
      "minimum": 1,
      "description": "From scene_list_revisions."
    }
  },
  "required": [
    "sceneId",
    "revision"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "summary": {},
        "revision": {},
        "publishedAt": {}
      },
      "required": [
        "summary",
        "revision",
        "publishedAt"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🟢scene_get_live_state(sceneId)

Reads what the scene has on air: each stream the scene is set on, with online (whether that stream is on air now) and, while it is, the frame on air, the frame cued next, the controls' values, each source's status and what its playlists play. Empty when no stream has the scene.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "sceneId": {
      "type": "string",
      "pattern": "^scn_"
    }
  },
  "required": [
    "sceneId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "playing": {},
        "summary": {}
      },
      "required": [
        "playing"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}
🔴scene_control_live(sceneId, op, streamId, target, transition, ...)

Acts on the scene on air, as its operator would; viewers see it at once. goFrame takes a frame to air, next cues one, setControl sets a control, setData replaces a table's rows, skip moves a playlist source to its next item. Changes what is on air, never the draft. The answer is the state after the action, with `applied` false when it did not show within a few seconds (scene_get_live_state reads it again). Refused with SCENE_OFFLINE while no stream plays the scene (stream_start starts one), and with SCENE_RELOADING for a few seconds after scene_publish when the action names something only the new revision has: retry then.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "sceneId": {
      "type": "string",
      "pattern": "^scn_"
    },
    "op": {
      "type": "string",
      "enum": [
        "goFrame",
        "next",
        "setControl",
        "setData",
        "skip"
      ]
    },
    "streamId": {
      "description": "Only when more than one stream plays the scene; from scene_get_live_state.",
      "type": "string",
      "pattern": "^stream_"
    },
    "target": {
      "description": "goFrame, next: the frame, by the id in its path frame/<id>. next with no target clears the cue.",
      "type": "string"
    },
    "transition": {
      "description": "goFrame: how it cuts. Omitted: the frame's own.",
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "cut",
            "fade",
            "slide",
            "wipe",
            "dip"
          ]
        },
        "ms": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": false
    },
    "controlId": {
      "description": "setControl: the id in its path control/<id>.",
      "type": "string"
    },
    "value": {
      "description": "setControl: a toggle true or false, a text a string, a number a number, a select one of its options; none for a button.",
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "sourceId": {
      "description": "setData: the table's id, as in source/data/<id>. skip: the playlist source's id; omitted: the scene's first.",
      "type": "string"
    },
    "rows": {
      "description": "setData: the new rows, each an object of column to value. They replace every row.",
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "actionId": {
      "description": "A new uuid per action. After SCENE_TIMEOUT retry with the same actionId and arguments: it is applied at most once.",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "sceneId",
    "op"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Esquema de salida

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": {},
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "streamId": {},
        "online": {},
        "frame": {},
        "next": {}
      },
      "required": [
        "streamId",
        "online",
        "frame",
        "next"
      ]
    },
    {
      "type": "object",
      "properties": {
        "code": {},
        "detail": {},
        "errors": {},
        "issues": {},
        "applied": {},
        "failed": {},
        "currentRevision": {},
        "currentVersion": {}
      },
      "required": [
        "code",
        "detail"
      ]
    }
  ]
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada42 herramientas
observación fallidaversión no registrada—
observación fallidaversión no registrada—
observación fallidaversión no registrada—