コンテンツにスキップ

editor_operations

Perform editor operations: undo, redo, get/set selection, and view undo history

分類: Editor

名前 型 必須 既定値 説明
action string 必須 Action to perform. 値: undo, redo, get_selection, set_selection, get_undo_history
selector string U-Selector expression for set_selection (e.g. #MyObject, .Camera, /Canvas/Button)

必須の引数だけを入れています。ほかは必要に応じて足してください。

{
"name": "editor_operations",
"arguments": {
"action": "undo"
}
}

Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "editor_operations", "args": { … }} の形で呼びます。SuperSave モードを参照。

Assets/NanoraUnityMCP/Editor/Tools/EditorOperationsTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。