editor_operations
Perform editor operations: undo, redo, get/set selection, and view undo history
Category: Editor
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
action |
string | yes | Action to perform. One of: undo, redo, get_selection, set_selection, get_undo_history |
|
selector |
string | U-Selector expression for set_selection (e.g. #MyObject, .Camera, /Canvas/Button) |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "editor_operations", "arguments": { "action": "undo" }}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "editor_operations", "args": { … }}. See SuperSave mode.
Source
Section titled “Source”Generated from Assets/NanoraUnityMCP/Editor/Tools/EditorOperationsTool.cs (version 1.2.1). The client receives the same schema from tools/list.