Agent CLI
Beta通过终端或本机 AI Agent 使用 Media Studio 创建图片、视频等内容。复制下方英文指令并粘贴给你的 Agent,完成准备后它会等待你的具体创作需求。
需要 Node.js 22 或更高版本。
让 Agent 快速上手
适用于本机 Agent 的英文指令;复制前可先查看全文。
Help me set up the Media Studio agent integration on this machine. Do not generate any media yet.
1. Check whether Node.js 22 or newer is available, whether msc is already installed, and whether the msc-skill Agent Skill is available in this Agent. These checks must be read-only. Do not install or upgrade Node.js, change PATH, or modify shell configuration. If the required runtime is missing, stop and tell me what I need to prepare.
2. If msc is not installed, ask for my explicit permission before running npm install -g @302ai/media-studio-cli. If a different version is already installed, report its version and do not replace or upgrade it without my explicit permission. If installation is not approved, stop.
3. If the msc-skill Agent Skill is not available, ask for my explicit permission before running npx -y skills add 302ai/msc-skill --skill msc-skill -g -y. Do not reinstall an existing Skill or modify Agent configuration without permission.
4. Once both are available, read msc guide to learn its commands and output contract. Do not run msc login yourself. If sign-in is needed, ask me to run msc login in an interactive terminal on this same machine and under the same user account, select the server region matching my Media Studio web account, and finish sign-in in my browser. Wait for me to confirm that I have finished.
5. Then run msc whoami to check authentication. If it reports "Authentication Status (Cached)", say that only local credentials were found and online access has not been verified; wait until connectivity is restored to verify. If sign-in fails, ask me to retry in my own terminal. Never read, request, copy, or transmit auth.json or any credentials.
6. When ready, tell me what you found and wait for my specific creative request. Do not run msc chat or incur any usage on your own.