Streamloop

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

我該用這個嗎

品質與安全性

A
說明品質
96%
結構描述完整度
84%
命名品質
90%
汙染風險
100%
權限相符程度
90%
協定合規性
100%

發現項目(3)

  • LOWTool 'stream_update_youtube_broadcast_settings' name length outside 3-30 range在 stream_update_youtube_broadcast_settings 中
  • LOWTool 'destination_create_youtube_oauth' name length outside 3-30 range在 destination_create_youtube_oauth 中
  • LOWTool 'upload_get_upload_url' suggests web access but openWorldHint=false在 upload_get_upload_url 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~14,138Token(工具定義)
~2.7 KB典型回應大小
顯著的注意力影響(128k 上下文的 11.05%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

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

遠端端點

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

它能做什麼

工具清單

工具(42)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢stream_list(id, name, status, sort, first, ...)

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

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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).

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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).

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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.

輸入結構描述

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

輸出結構描述

{
  "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.

輸入結構描述

{
  "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
}

輸出結構描述

{
  "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"
      ]
    }
  ]
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本42 個工具
觀測失敗未記錄版本—
觀測失敗未記錄版本—
觀測失敗未記錄版本—