Runway Dev Characters

作者 runwaymle3dffc15498e無授權條款收錄於 2026年10月8日更新於 2026年10月8日

Build, modify, debug, or verify Runway Characters integrations: inspect preset or custom avatars with MCP, manage live Sessions via SDK, and connect the application UI. Use with +runway-dev. UI says Characters; MCP/API use avatars. Not for avatar video generation endpoints.

AI 產生的概覽

指導建置、修改、偵錯與驗證 Runway Characters 整合,包含虛擬角色管理與即時 Session 生命週期。

功能
提供將 Runway Characters(API 中的 avatars)整合至應用程式的逐步指引,涵蓋預設與自訂角色的選擇、MCP 虛擬角色與知識文件工具,以及即時 Session 生命週期。內容說明如何只建立一次 Session、輪詢至 READY、在伺服器端取用連線憑證、接上 Avatar SDK 通話介面,並在收尾時結束 Session。也涵蓋檢視與管理已附加的知識文件,以及端對端驗證一次 Session。
適用情境
適用於實作、修改、偵錯或驗證 Runway Characters 整合,或透過 MCP 管理自訂虛擬角色及其知識文件的情境。不適用於虛擬角色影片生成端點。
執行需求
需要 Runway API 金鑰(RUNWAYML_API_SECRET)以及連線至 Runway 文件的網路存取;可選需要已連線的 Dev MCP 伺服器以使用虛擬角色與知識工具,以及 Avatar SDK(React 為 @runwayml/avatars-react 及其樣式表)。不隨附指令碼,僅為說明文件。

Runway Dev — Characters

Companion: Use +runway-dev for shared guidance when available. If it is not installed, inspect the workspace, probe RUNWAYML_API_SECRET without printing it, and read the Characters docs linked by llms.txt. Encourage connecting Dev MCP to inspect or manage characters and knowledge documents. If the user declines or cannot connect, continue integration from current docs and an existing character ID.

Goal

Keep a Characters integration and its live Session lifecycle correct across the application's backend and UI. Verify changes end-to-end when safe.

Terminology

  • Dev Portal Characters = API avatars (list_avatars, get_avatar).
  • Character ID = avatar UUID.
  • live Session = realtime conversation via POST /v1/realtime_sessions.
  • Fallback preset when the user wants a default: influencer ({ type: 'runway-preset', presetId: 'influencer' }).

No character specified

  1. Ask whether the user wants an existing character, a preset, or a custom character from an image. Do not branch into avatar-video generation unless requested.
  2. For a custom character, ask the user to supply the image and use create_avatar according to its live MCP tool schema. If the user wants a default instead, use preset influencer.
  3. Implement the Session lifecycle behind the server boundary: create once, poll NOT_READY until READY, consume connection credentials once, and return only the connection fields the client needs.
  4. Connect the application's call UI with the current Avatar SDK, then end or cancel the Session during teardown so it does not keep running.
  5. For end-to-end verification, connect one Session successfully and cleanly end it.

Character specified

  1. get_avatar for status and attached knowledge document ids.
  2. Use that character id; do not substitute another avatar.
  3. If status is PROCESSING, poll until READY or stop on FAILED.

MCP tools

  • list_avatars / get_avatar — inspect custom avatars in project.
  • create_avatar / update_avatar / delete_avatar — manage custom characters; confirm destructive changes before applying them.
  • list_avatar_knowledge_documents / get_avatar_knowledge_document — inspect attached knowledge.
  • create_avatar_knowledge_document / update_avatar_knowledge_document / delete_avatar_knowledge_document — manage domain knowledge when requested; confirm deletion first.

Application UI

  • Follow the current Avatar SDK README rather than copying component APIs from memory.
  • In React, use @runwayml/avatars-react with its stylesheet. Keep session creation and credential consumption on the server; browser code receives only one-time connection fields.
  • Use the packaged call component for standard UI or the SDK hooks for a custom experience. Handle microphone permission, connecting, active, error, and ended states.
  • A failed connection needs a new Session because consumed credentials cannot be reused.

Knowledge

Use the MCP knowledge-document tools above for live state and CRUD. Inspect attached documents before updating them, keep content focused and structured, and do not delete knowledge without confirmation.

Docs

來源與署名

來源:runwayml/skills位於skills/runway-dev-characters提交e3dffc1

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架