editor-selection-set

Sets the Unity Editor selection to specified objects via the unity-mcp-cli tool.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Programmatically controlling which objects are selected in the Unity Editor is essential for automation workflows, but doing it manually through the UI breaks scripted pipelines. This Skill sets the current Editor selection to provided objects using the Unity MCP CLI. ## Core Features & Use Cases - Programmatic Selection: Set the Unity Editor selection to one or more objects by passing ObjectRef entries with instance IDs. - Structured Output: Returns full selection data including GameObjects, Transforms, instance IDs, asset GUIDs, and the active object. - Use Case: After querying the current selection with the editor-selection-get tool, an AI agent can update the selection to specific GameObjects before running follow-up editor operations like inspection or modification. ## Quick Start Ask the AI to set the Unity Editor selection to specific objects by running the editor-selection-set tool with their instance IDs.

Frequently Asked Questions about editor-selection-set

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

FAQPage Schema
How do I set the Unity Editor selection programmatically?

Run the editor-selection-set tool via unity-mcp-cli with a select parameter containing an array of ObjectRef entries, each specifying an instanceID. The tool updates the Editor selection and returns the resulting selection data.

How do I find instance IDs before setting the Unity selection?

Use the editor-selection-get tool first to retrieve the current selection and its instance IDs, as recommended in the Skill documentation. You can then pass those IDs to editor-selection-set.

What input format does editor-selection-set require?

It requires a JSON object with a select field containing an array of ObjectRef objects. Each ObjectRef must include an integer instanceID, where 0 is treated as null.

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.

What data does the Unity selection tool return?

It returns SelectionData including selected GameObjects, top-level Transforms, raw instance IDs, asset GUIDs, and the active GameObject, object, and transform shown in the Inspector.