editor-selection-get

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

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/PMK95/GridSquad --skill editor-selection-get-pmk95
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: editor-selection-get
Source: https://github.com/PMK95/GridSquad/tree/main/GridSquadUnity/.agents/skills/editor-selection-get
Command: npx skills add https://github.com/PMK95/GridSquad --skill editor-selection-get-pmk95

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When automating Unity Editor workflows, you often need to know exactly what the user has selected before performing further actions. This Skill reads the current Editor selection state so downstream tools can act on the right objects. ## Core Features & Use Cases - Selection Inspection: Returns the active GameObject, active transform, and active instance ID by default. - Opt-in Enrichment: Toggle flags to include full GameObject lists, transforms, instance IDs, and project-window asset GUIDs while keeping responses small. - Use Case: Before running a batch rename or component-add operation, call this Skill to confirm which GameObjects are selected, then pass those references to 'editor-selection-set' or other editor tools. ## Quick Start Ask the AI to get the current Unity Editor selection including GameObjects and asset GUIDs 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 a JSON input of boolean toggles. By default it returns the active GameObject and active instance ID; enable includeGameObjects or includeAssetGUIDs for more detail.

How to get selected asset GUIDs in Unity Editor?▼

Set includeAssetGUIDs to true in the input JSON. The response populates the AssetGUIDs array with the GUIDs of assets selected in the Unity project window.

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 JSON, while editor-selection-set changes the selection. They are designed to be paired together in editor automation workflows.

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 instead.

Does editor-selection-get return all selection data by default?▼

No. Only ActiveGameObject, ActiveInstanceID, ActiveObject, and ActiveTransform are populated by default. GameObjects, Transforms, InstanceIDs, and AssetGUIDs require explicit opt-in flags to keep responses small.