editor-selection-get

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

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill editor-selection-get-fermisloth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: editor-selection-get
Source: https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment/tree/main/.agent/skills/editor-selection-get
Command: npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill editor-selection-get-fermisloth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When automating Unity Editor workflows through the MCP CLI, you often need to know which GameObjects, Transforms, or assets are currently selected before performing further operations. This Skill queries the Unity Editor and returns structured selection data. ## Core Features & Use Cases - Selection Inspection: Returns selected GameObjects, Transforms, instance IDs, and asset GUIDs from the active scene or prefab. - Active Object Details: Optionally includes the active GameObject, active Transform, and active object shown in the Inspector. - Configurable Output: Boolean flags let you include only the selection data you need. - Use Case: Before running an editor-selection-set operation or a batch rename, call this tool to confirm exactly which objects are selected in the Editor. ## 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 a JSON input specifying which fields to include, such as includeGameObjects or includeInstanceIDs. The tool returns the selection as structured JSON.

How to get selected GameObject instance IDs in Unity Editor?

Set includeInstanceIDs to true in the input JSON when calling editor-selection-get. The response contains an InstanceIDs array with the unfiltered selection from the active scene.

What should I do if unity-mcp-cli is not found?

Install it globally with npm install -g unity-mcp-cli, or prefix commands with npx unity-mcp-cli. The unity-initial-setup skill provides detailed installation instructions.

Can I get the GUIDs of selected assets in Unity?

Yes, set includeAssetGUIDs to true when calling the tool. The response includes an AssetGUIDs array containing the GUIDs of the currently selected assets.

What is the difference between GameObjects and Transforms in the selection output?

GameObjects returns the actual selection including prefabs and non-modifiable objects, while Transforms returns only the top-level selection excluding prefabs. Choose based on whether you need the full or filtered selection.