editor-selection-get

Retrieve current Unity Editor selection data including GameObjects, transforms, instance IDs, and asset GUIDs.

Updated May 27, 2026
One-click install
npx skills add https://github.com/AdielMag/ClashUp --skill editor-selection-get-adielmag
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: editor-selection-get
Source: https://github.com/AdielMag/ClashUp/tree/main/client/ClashUp.Unity/.claude/skills/editor-selection-get
Command: npx skills add https://github.com/AdielMag/ClashUp --skill editor-selection-get-adielmag

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When automating Unity Editor workflows through AI, you often need to know exactly what the user has selected before performing any action. This Skill reads the current Editor selection state so downstream tools can act on the right objects without guesswork. ## Core Features & Use Cases - Selection Inspection: Returns the active GameObject, active transform, and active instance ID by default, with opt-in enrichment for full GameObject lists, transforms, instance IDs, and project-window asset GUIDs. - Opt-in Payload Control: Each enrichment toggle (includeGameObjects, includeTransforms, includeInstanceIDs, includeAssetGUIDs) keeps responses small unless explicitly requested. - Use Case: Before running a rename or component-add operation, call this tool to confirm which GameObjects are selected, then pair it with the 'editor-selection-set' tool to change the selection programmatically. ## Quick Start Ask the AI to show what is currently selected in the Unity Editor, including the selected GameObjects and their asset GUIDs.

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 a JSON input of boolean toggles. By default it returns the active GameObject and active instance ID; enable includeGameObjects or includeAssetGUIDs for fuller results.

How to get selected asset GUIDs in Unity Editor programmatically?▼

Set includeAssetGUIDs to true when calling editor-selection-get. The response populates the AssetGUIDs array from the current project-window selection, which you can use for asset lookups or batch operations.

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

editor-selection-get reads the current Unity Editor selection, while editor-selection-set changes it. They are designed to be paired: inspect the selection first, then modify it with the set tool.

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

The CLI is not installed or not on your PATH. Install it globally with npm install -g unity-mcp-cli, or invoke it via npx unity-mcp-cli, then retry the run-tool command.

Can I limit the selection data returned to keep responses small?▼

Yes. All enrichment toggles default to false except includeActiveObject and includeActiveTransform. Leave them off to receive only ActiveGameObject and ActiveInstanceID, and enable only the fields you need.