editor-selection-get

Retrieves current selection data from the Unity Editor via the unity-mcp-cli tool.

Updated May 28, 2026
One-click install
npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill editor-selection-get-ishaansingh-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: editor-selection-get
Source: https://github.com/ishaansingh-ai/Mechanical-2D/tree/main/.claude/skills/editor-selection-get
Command: npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill editor-selection-get-ishaansingh-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When automating Unity Editor workflows through MCP, you often need to know which GameObjects, Transforms, or assets the user has currently selected before performing further operations. This Skill exposes that selection state programmatically. ## Core Features & Use Cases - Selection Inspection: Retrieve selected GameObjects, Transforms, instance IDs, and asset GUIDs from the Unity Editor. - Active Object Access: Get the active GameObject, Transform, or Object shown in the Inspector. - Configurable Output: Toggle each data category (GameObjects, Transforms, InstanceIDs, AssetGUIDs, ActiveObject, ActiveTransform) with boolean flags. - Use Case: Before running an editor automation script, query the current selection to determine which objects a batch rename or component-add operation should target. ## Quick Start Ask the AI to get the current Unity Editor selection including GameObjects and instance IDs using the editor-selection-get tool.

Frequently Asked Questions about editor-selection-get

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get the current selection in the Unity Editor from the command line?▼

Run unity-mcp-cli run-tool editor-selection-get with boolean flags such as includeGameObjects and includeInstanceIDs set to true. The tool returns a JSON SelectionData object describing everything currently selected in the Editor.

How to get the active GameObject shown in the Unity Inspector?▼

Call editor-selection-get with includeActiveObject or includeGameObjects set to true. The response includes ActiveGameObject and ActiveObject fields referencing the object displayed in the Inspector.

What is the difference between editor-selection-get and editor-selection-set?▼

editor-selection-get reads the current Unity Editor selection and returns it as structured data, while editor-selection-set modifies the selection. Use get to inspect state before calling set to change it.

Why is unity-mcp-cli not found when running the command?▼

The CLI is not installed globally. Install it with npm install -g unity-mcp-cli, or prefix commands with npx unity-mcp-cli. The unity-initial-setup skill covers detailed installation steps.

Can I get asset GUIDs of selected files in the Unity Project window?▼

Yes, set includeAssetGUIDs to true when calling editor-selection-get. The response contains an AssetGUIDs array with the GUIDs of all selected assets in the project.