Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Gets the Unity Editor's current selection, including active object, transforms, instance IDs and asset GUIDs, with opt-in enrichments.
14% 82%+68 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 3 of 22 without it.
3 of 3 safety checks passed
Not used yet
Get information about the current Selection in the Unity Editor. Use 'editor-selection-set' tool to set the selection.
includeGameObjects (default false) — populate GameObjects[].includeTransforms (default false) — populate Transforms[] as ComponentRefs.includeInstanceIDs (default false) — populate InstanceIDs[].includeAssetGUIDs (default false) — populate AssetGUIDs[] from project-window selection.includeActiveObject (default true) — populate ActiveObject as a generic ObjectRef.includeActiveTransform (default true) — populate ActiveTransform as a ComponentRef.ActiveGameObject and ActiveInstanceID are always populated.
unity-mcp-cli run-tool editor-selection-get --input '{
"includeGameObjects": false,
"includeTransforms": false,
"includeInstanceIDs": false,
"includeAssetGUIDs": false,
"includeActiveObject": false,
"includeActiveTransform": false
}'
For complex input (multi-line strings, code), save the JSON to a file and use:
unity-mcp-cli run-tool editor-selection-get --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-tool editor-selection-get --input-file - <<'EOF' {"param": "value"} EOF
Next to this one in the catalogue, plus more from the same author.