get_scene_hierarchy
Gets the GameObject hierarchy of the active scene as indented text: scene name, path, root count, then one line per object with [inactive]/[prefab] markers and its component type names.
分類: シーン
| 名前 | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
include_inactive |
boolean | true |
Whether to include inactive GameObjects | |
max_depth |
integer | 0 |
Maximum depth to traverse (0 = unlimited) |
呼び出しの例
Section titled “呼び出しの例”必須の引数だけを入れています。ほかは必要に応じて足してください。
{ "name": "get_scene_hierarchy", "arguments": {}}SuperSave モードでは
Section titled “SuperSave モードでは”Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "get_scene_hierarchy", "args": { … }} の形で呼びます。SuperSave モードを参照。
Assets/NanoraUnityMCP/Editor/Tools/GetSceneHierarchyTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。