manage_scene
Manage scene files: new, save, save_as, load, or info about the active scene (name, path, dirty state, root objects). new and load replace all open scenes (single mode). Before replacing, if the active scene has unsaved changes,
分類: シーン管理
| 名前 | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
action |
string | 必須 | Action to perform: new (create new scene), save (save current), save_as (save to path), load (open scene), info (get current scene info) 値: new, save, save_as, load, info |
|
path |
string | Scene path (e.g., ‘Assets/Scenes/MyScene.unity’). Required for save_as and load actions | ||
save_current |
boolean | true |
For new and load: true saves the dirty active scene to its file first; false discards its unsaved changes |
呼び出しの例
Section titled “呼び出しの例”必須の引数だけを入れています。ほかは必要に応じて足してください。
{ "name": "manage_scene", "arguments": { "action": "new" }}SuperSave モードでは
Section titled “SuperSave モードでは”Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "manage_scene", "args": { … }} の形で呼びます。SuperSave モードを参照。
Assets/NanoraUnityMCP/Editor/Tools/SceneManagementTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。