get_object_details
Gets details of one active GameObject: active state, layer, tag, static flag, world and local transform, parent, child count, and the type names of all components (missing scripts are marked). Only a few component types add fields: MeshRenderer materials, MeshFilter mesh, Light, Camera, Collider, and Rigidbody basics.
分類: シーン
| 名前 | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
object_name |
string | Name of the GameObject to inspect (provide either this or object_path) | ||
object_path |
string | Full path to the GameObject (e.g., ‘Parent/Child/Target’). Takes precedence over object_name |
呼び出しの例
Section titled “呼び出しの例”必須の引数だけを入れています。ほかは必要に応じて足してください。
{ "name": "get_object_details", "arguments": {}}SuperSave モードでは
Section titled “SuperSave モードでは”Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "get_object_details", "args": { … }} の形で呼びます。SuperSave モードを参照。
Assets/NanoraUnityMCP/Editor/Tools/GetObjectDetailsTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。