unity_reflect
Inspect .NET/Unity types via reflection: get type info, search types, get member details, and invoke static methods
分類: Editor
| 名前 | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
action |
string | 必須 | Action to perform. 値: get_type, search_type, get_member, invoke_method |
|
type_name |
string | Fully qualified type name (e.g. UnityEngine.GameObject) | ||
search_query |
string | Partial type name to search for (search_type action) | ||
member_name |
string | Member name to inspect (get_member action) | ||
method_args |
array | Arguments for static method invocation (invoke_method action) |
呼び出しの例
Section titled “呼び出しの例”必須の引数だけを入れています。ほかは必要に応じて足してください。
{ "name": "unity_reflect", "arguments": { "action": "get_type" }}SuperSave モードでは
Section titled “SuperSave モードでは”Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "unity_reflect", "args": { … }} の形で呼びます。SuperSave モードを参照。
Assets/NanoraUnityMCP/Editor/Tools/UnityReflectTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。