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 从公开仓库中收录这些内容。

举报或申请下架