anklebreaker-unity-mcp
v2.36.0Unity MCP Server — Multi-agent MCP server for Unity Editor, designed for Claude Cowork.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
unity_list_instances
List running Unity Editor instances (name, port, version, clone flag, pluginVersion). With multiple instances, select one with unity_select_instance next.
| Parameter | Type | Description |
|---|---|---|
refresh | boolean | Accepted for compatibility. Discovery always performs a fresh registry read + port scan. |
unity_select_instance
Select the Unity Editor instance this session targets; subsequent unity_* calls route there. Identify it by projectName (stable) or port (dynamic — can change across editor restarts). PARALLEL SAFETY: after selecting, include port on every unity_* call when multiple agents share this MCP process.
| Parameter | Type | Description |
|---|---|---|
port | number | Port of the instance to select (from unity_list_instances). |
projectName | string | Project name to select (stable across restarts, unlike ports). |
unity_hub_list_editors
List all Unity Editor versions currently installed via Unity Hub, including their installation paths.
unity_hub_available_releases
List Unity Editor versions available for download from Unity Hub.
unity_hub_install_editor
Install a specific Unity Editor version. Optionally include platform modules (android, ios, webgl, linux, macos, windows-il2cpp).
| Parameter | Type | Description |
|---|---|---|
version * | string | Unity version to install (e.g. '2022.3.20f1', '6000.3.7f1') |
modules | array | Optional modules to install: android, android-sdk-ndk-tools, android-open-jdk, ios, webgl, linux-il2cpp, mac-il2cpp, windows-il2cpp, etc. |
unity_hub_install_modules
Install additional platform modules to an already-installed Unity Editor version.
| Parameter | Type | Description |
|---|---|---|
modules * | array | Modules to add: android, ios, webgl, etc. |
version * | string | Target Unity version |
unity_hub_get_install_path
Get the current default installation path for Unity Editors.
unity_hub_set_install_path
Set the default installation directory for Unity Editors.
| Parameter | Type | Description |
|---|---|---|
path * | string | New installation directory path |
unity_editor_ping
Check if the Unity Editor bridge is running and responsive. Returns editor version, project name, and connection status.
| Parameter | Type | Description |
|---|---|---|
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_editor_state
Get the current Unity Editor state: play mode, compilation status, active scene, project path.
| Parameter | Type | Description |
|---|---|---|
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_scene_info
Get information about the currently open scene(s), including name, path, dirty state, and root game objects.
| Parameter | Type | Description |
|---|---|---|
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_scene_open
Open a scene by its asset path (relative to Assets/). Refuses if any loaded scene has unsaved changes — pass saveFirst or discardUnsavedChanges.
| Parameter | Type | Description |
|---|---|---|
path * | string | Scene asset path, e.g. 'Assets/Scenes/MainScene.unity' |
discardUnsavedChanges | boolean | Proceed and LOSE unsaved changes. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
saveFirst | boolean | Save all modified scenes before switching. |
unity_scene_save
Save the current scene. A never-saved scene requires `path`, else Unity opens its interactive Save dialog.
| Parameter | Type | Description |
|---|---|---|
overwrite | boolean | Replace another existing scene at path (default false) |
path | string | Save-As asset path, e.g. 'Assets/Scenes/MyScene.unity'. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_scene_new
Create a new empty scene (REPLACES the current one). Refuses if any loaded scene has unsaved changes — pass saveFirst or discardUnsavedChanges.
| Parameter | Type | Description |
|---|---|---|
discardUnsavedChanges | boolean | Proceed and LOSE unsaved changes. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
saveFirst | boolean | Save all modified scenes first. |
unity_scene_hierarchy
Get the hierarchy tree of all GameObjects in the active scene, including their components and children. Dense by default: per-node fields at their default value (active=true, tag=Untagged, layer=Default, origin position, Transform) are omitted — an absent field means the default.
| Parameter | Type | Description |
|---|---|---|
maxDepth | number | Maximum depth to traverse (default: 10) |
maxNodes | number | Maximum total nodes to return (default: 5000). Use lower values for very large scenes to avoid timeouts. |
parentPath | string | Only return hierarchy under this GameObject path (e.g. 'Canvas/Panel'). Useful for exploring specific subtrees in large scenes. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
verbose | boolean | Emit every per-node field even at default values (the pre-2.37 shape). |
unity_gameobject_create
Create a new GameObject in the scene. Can specify primitive type (Cube, Sphere, Capsule, Cylinder, Plane, Quad), parent, and initial transform.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name for the new GameObject |
parent | string | Path or name of parent GameObject (optional) |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
position | object | |
primitiveType | string | Optional primitive: Cube, Sphere, Capsule, Cylinder, Plane, Quad, Empty |
rotation | object | |
scale | object |
unity_gameobject_delete
Delete a GameObject by path or name. Refuses if its runtime mesh is shared by other objects (ProBuilder clones) — reports sharedWith; pass force:true to override.
| Parameter | Type | Description |
|---|---|---|
force | boolean | Delete even when the runtime mesh is shared by other objects (ProBuilder clones). Default false. |
instanceId | string | Instance ID (alternative to path) |
path | string | Hierarchy path or name of the GameObject to delete |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_gameobject_info
Get detailed info about a specific GameObject: transform, components, children, active state, tags, layer.
| Parameter | Type | Description |
|---|---|---|
instanceId | string | Instance ID (alternative to path) |
path | string | Hierarchy path or name |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_gameobject_set_transform
Set the transform (position, rotation, scale) of a GameObject.
| Parameter | Type | Description |
|---|---|---|
instanceId | string | Instance ID (alternative) |
local | boolean | If true, set local transform instead of world (default: false) |
path | string | Hierarchy path or name |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
position | object | |
rotation | object | |
scale | object |
unity_component_add
Add a component to a GameObject. Supports built-in types (Rigidbody, BoxCollider, AudioSource, Light, Camera, etc.) and custom scripts.
| Parameter | Type | Description |
|---|---|---|
componentType * | string | Full type name, e.g. 'Rigidbody', 'BoxCollider', 'MyNamespace.MyScript' |
gameObjectPath * | string | Path or name of the target GameObject |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_component_remove
Remove a component from a GameObject.
| Parameter | Type | Description |
|---|---|---|
componentType * | string | Type name of the component to remove |
gameObjectPath * | string | Path or name of the target GameObject |
index | number | Index if multiple components of same type (default: 0) |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_component_get_properties
Get all serialized properties of a component on a GameObject.
| Parameter | Type | Description |
|---|---|---|
componentType * | string | Component type name |
gameObjectPath * | string | Path or name of the target GameObject |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_component_set_property
Set a serialized component property: numbers, strings, bools, vectors, colors, enums or object references.
| Parameter | Type | Description |
|---|---|---|
componentType * | string | Component type name |
gameObjectPath * | string | Path or name of target GameObject |
propertyName * | string | Name of the property to set |
value * | string | number | boolean | object | array | null | ObjectReference: asset path, scene name, null, or {assetPath?,instanceId?,gameObject?,componentType?}. Enum: name, index (0-based), or {enumValue:int} for flags/raw values. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_component_set_reference
Wire an object reference on a component property. Resolves by asset path, scene GameObject name, component type, or instance ID (richer than set_property for ObjectReference fields).
| Parameter | Type | Description |
|---|---|---|
propertyName * | string | Name of the ObjectReference property to set |
assetPath | string | Asset path to assign (e.g. 'Assets/Materials/MyMat.mat', 'Assets/Prefabs/Enemy.prefab') |
clear | boolean | Set to true to clear/null the reference |
componentType | string | Component type containing the property (optional — will auto-search all components) |
instanceId | string | Instance ID of the target GameObject (alternative to path) |
path | string | Hierarchy path or name of the target GameObject |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
referenceComponentType | string | When referencing a scene object, get a specific component instead of the GameObject itself (e.g. 'Camera', 'AudioSource') |
referenceGameObject | string | Name or hierarchy path of a scene GameObject to assign |
referenceInstanceId | string | Instance ID of the object to assign (64-bit-safe string) |
unity_component_batch_wire
Wire multiple object references in one call (e.g. a manager to all its panels). Each entry: target GameObject, property, reference to assign.
| Parameter | Type | Description |
|---|---|---|
references * | array | Array of reference assignments to perform |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_component_get_referenceable
Discover what objects can be assigned to an ObjectReference property. Returns matching scene objects and project assets filtered by the expected type. Useful before wiring references to know what's available.
| Parameter | Type | Description |
|---|---|---|
propertyName * | string | ObjectReference property name to inspect |
componentType | string | Component type containing the property |
instanceId | string | Target GameObject instance ID |
maxResults | number | Maximum results to return (default: 50) |
path | string | Target GameObject path or name |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_asset_list
List assets in the project. Can filter by path, type, and search term.
| Parameter | Type | Description |
|---|---|---|
folder | string | Folder path relative to Assets/ (default: 'Assets') |
maxResults | number | Limit 1-10000 (default 500). Returns totalCount and truncated. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
recursive | boolean | Search recursively in subfolders (default: true) |
search | string | Search query string |
type | string | Asset type filter: Script, Scene, Prefab, Material, Texture, AudioClip, AnimationClip, Shader, Font, Mesh, Model |
unity_asset_import
Import an external file into the Unity project as an asset.
| Parameter | Type | Description |
|---|---|---|
destinationPath * | string | Destination path inside Assets/ folder |
sourcePath * | string | Absolute path to the source file on disk |
overwrite | boolean | Replace an existing asset at the destination (default false). |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_asset_delete
Delete an asset — to the OS trash by default (NOT undoable via unity_undo_last). Deleting a FOLDER is recursive and refuses without recursive:true.
| Parameter | Type | Description |
|---|---|---|
path * | string | Asset path relative to project root (e.g. 'Assets/Scripts/MyScript.cs') |
permanent | boolean | Hard-delete instead of OS trash. Default false. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
recursive | boolean | Required to delete a FOLDER and its contents. Default false refuses, reporting the asset count. |
unity_asset_create_prefab
Create a prefab from an existing GameObject in the scene.
| Parameter | Type | Description |
|---|---|---|
gameObjectPath * | string | Path of the source GameObject in the hierarchy |
savePath * | string | Where to save the prefab (e.g. 'Assets/Prefabs/MyPrefab.prefab') |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_asset_instantiate_prefab
Instantiate a prefab into the current scene.
| Parameter | Type | Description |
|---|---|---|
prefabPath * | string | Path to the prefab asset (e.g. 'Assets/Prefabs/Enemy.prefab') |
name | string | Name for the instantiated object |
parent | string | Parent GameObject path (optional) |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
position | object | |
rotation | object |
unity_script_create
Create a new C# script file in the project with the given content.
| Parameter | Type | Description |
|---|---|---|
content * | string | Full C# source code content |
path * | string | Asset path for the script (e.g. 'Assets/Scripts/PlayerController.cs') |
className | string | Class name (defaults to filename without extension) |
overwrite | boolean | Replace an existing script (default false). Use unity_script_update to edit. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_script_read
Read the contents of a C# script file from the project.
| Parameter | Type | Description |
|---|---|---|
path * | string | Asset path of the script |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_script_update
Update the contents of an existing C# script file.
| Parameter | Type | Description |
|---|---|---|
content * | string | New full C# source code content |
path * | string | Asset path of the script |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_execute_code
Run C# in the Unity Editor with Unity API access. Return a small JSON result. If an error has executionCompleted=true, the code already ran; inspect its effects before retrying.
| Parameter | Type | Description |
|---|---|---|
code * | string | C# code to execute. Must be a valid method body. Access UnityEngine and UnityEditor namespaces. Use 'return' to send data back. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_material_create
Create a new material asset with a specified shader and properties.
| Parameter | Type | Description |
|---|---|---|
path * | string | Save path (e.g. 'Assets/Materials/MyMat.mat') |
color | object | |
overwrite | boolean | Replace an existing material (default false). |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
properties | object | Additional shader properties as key-value pairs |
shader | string | Shader name (e.g. 'Standard', 'Universal Render Pipeline/Lit') |
unity_renderer_set_material
Assign a material to a GameObject's renderer.
| Parameter | Type | Description |
|---|---|---|
gameObjectPath * | string | Path to the target GameObject |
materialPath * | string | Path to the material asset |
materialIndex | number | Material slot index (default: 0) |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_build
Build the project for a target platform.
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | Build output path |
target * | string | Platform |
developmentBuild | boolean | Development build (default: false) |
managedCodeVariant | string | Unity 6.6+, protocol 3. Default: Checked for Development, Release otherwise. This build only. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
scenes | array | Scene paths; default: enabled Build Settings scenes |
unity_console_log
Get recent Unity console log messages (errors, warnings, info).
| Parameter | Type | Description |
|---|---|---|
count | number | Number of recent messages to retrieve (default: 50) |
includeStackTrace | string | Traces to keep: 'errors' (default, error-like entries only, trimmed), 'all', 'none'. |
maxStackFrames | number | Frames kept per retained trace (default: 6) |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
type | string | Filter: 'error', 'warning', 'info', or 'all' (default: 'all') |
unity_console_clear
Clear the Unity console log.
| Parameter | Type | Description |
|---|---|---|
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_get_compilation_errors
Get C# compilation errors/warnings via CompilationPipeline — independent of the console buffer (survives console clear and log flooding). Prefer this over unity_console_log for compile issues.
| Parameter | Type | Description |
|---|---|---|
count | number | Max number of entries to retrieve (default: 50) |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
severity | string | Filter: 'error', 'warning', or 'all' (default: 'all') |
unity_play_mode
Control Unity Editor play mode: enter play, pause, or stop.
| Parameter | Type | Description |
|---|---|---|
action * | string | Play mode action |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_project_info
Get project information: name, path, Unity version, render pipeline, packages, build settings.
| Parameter | Type | Description |
|---|---|---|
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_prefab_info
Get detailed prefab information: overrides, variant status, added/removed components. Works on both prefab assets and scene instances.
| Parameter | Type | Description |
|---|---|---|
assetPath | string | Asset path of the prefab (e.g. 'Assets/Prefabs/Player.prefab') |
instanceId | string | Instance ID of a prefab instance |
path | string | Hierarchy path of a prefab instance in the scene |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_set_object_reference
[LEGACY] Set an object reference on a component. Prefer unity_component_set_reference (richer resolution).
| Parameter | Type | Description |
|---|---|---|
propertyName * | string | Name of the ObjectReference property to set |
componentType | string | Component type name (optional - will search all components) |
instanceId | string | Instance ID (alternative to path) |
path | string | Hierarchy path of the target GameObject |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
referenceGameObject | string | Name/path of a GameObject in the scene (for scene references) |
referencePath | string | Asset path of the reference (for assets like prefabs, materials, textures) |
unity_gameobject_duplicate
Duplicate a GameObject with all its children and components.
| Parameter | Type | Description |
|---|---|---|
instanceId | string | Instance ID (alternative to path) |
newName | string | Name for the duplicate (default: original name + ' (Copy)') |
path | string | Hierarchy path or name of the GameObject to duplicate |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_gameobject_set_active
Set a GameObject active or inactive.
| Parameter | Type | Description |
|---|---|---|
active * | boolean | Whether the GameObject should be active |
instanceId | string | Instance ID (alternative to path) |
path | string | Hierarchy path or name of the GameObject |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_gameobject_reparent
Move a GameObject under a new parent in the hierarchy.
| Parameter | Type | Description |
|---|---|---|
instanceId | string | Instance ID (alternative to path) |
newParent | string | Path of the new parent (empty string for scene root) |
path | string | Hierarchy path or name of the GameObject to move |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
worldPositionStays | boolean | Maintain world position after reparenting (default: true) |
unity_selection_get
Get the currently selected GameObjects in the Unity Editor.
| Parameter | Type | Description |
|---|---|---|
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_selection_set
Set the editor selection to specific GameObjects.
| Parameter | Type | Description |
|---|---|---|
instanceId | string | Instance ID of GameObject to select |
path | string | Single GameObject path to select |
paths | array | Multiple GameObject paths to select |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_selection_focus_scene_view
Control the Scene View camera: frame a GameObject, set pivot/rotation/zoom, toggle orthographic.
| Parameter | Type | Description |
|---|---|---|
instanceId | string | Instance ID of GameObject to frame |
orthographic | boolean | Toggle orthographic/perspective |
path | string | GameObject to frame in scene view |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
position | object | Scene view pivot position |
rotation | object | Scene view rotation (euler angles) |
size | number | Scene view zoom (camera distance) |
unity_selection_find_by_type
Find all GameObjects in the scene that have a specific component type.
| Parameter | Type | Description |
|---|---|---|
typeName * | string | Component type name (e.g. 'Rigidbody', 'Camera', 'MyScript') |
limit | integer | Max results (default 500); see truncated and totalFound. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_search_by_component
Find all GameObjects in the scene that have a specific component type. Returns their paths and instance IDs.
| Parameter | Type | Description |
|---|---|---|
componentType * | string | Component type name (e.g. 'Rigidbody', 'Camera', 'AudioSource', 'MyScript') |
includeInactive | boolean | Include inactive GameObjects (default: false) |
limit | number | Maximum results to return (default: 500). Use lower values on large scenes. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_search_by_tag
Find all GameObjects with a specific tag.
| Parameter | Type | Description |
|---|---|---|
tag * | string | Tag name (e.g. 'Player', 'Enemy', 'MainCamera') |
limit | number | Maximum results to return (default: 500). |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_search_by_layer
Find all GameObjects on a specific layer.
| Parameter | Type | Description |
|---|---|---|
layer * | string | Layer name or index (e.g. 'UI', 'Water', '5') |
limit | number | Maximum results to return (default: 500). |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_search_by_name
Find all GameObjects whose name contains a pattern. Supports substring matching or regex.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name pattern to search for |
includeInactive | boolean | Include inactive GameObjects (default: false) |
limit | number | Maximum results to return (default: 500). |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
regex | boolean | Use regex matching instead of substring (default: false) |
unity_search_assets
Search for assets in the project by name, type, and folder. Uses Unity's AssetDatabase search.
| Parameter | Type | Description |
|---|---|---|
folder | string | Folder to search in (e.g. 'Assets/Prefabs') |
maxResults | number | Maximum results to return (default: 100) |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
query | string | Search query (asset name) |
type | string | Asset type filter (e.g. 'Material', 'Texture2D', 'Prefab', 'Scene', 'AnimationClip', 'ScriptableObject') |
unity_search_missing_references
Find all missing/broken object references and missing scripts in the scene. Essential for cleanup and debugging.
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum results to return (default: 500). |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
scope | string | 'scene' (default) or 'assets' |
unity_scene_stats
Get comprehensive scene statistics: total objects, vertices, triangles, lights, cameras, colliders, and top component types.
| Parameter | Type | Description |
|---|---|---|
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_undo
Undo the single most recent step on Unity's global undo stack (Ctrl+Z). To revert a specific MCP action, prefer unity_undo_last.
| Parameter | Type | Description |
|---|---|---|
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_undo_last
Revert the latest verified MCP Undo group, optionally by agentId. Newer MCP/native groups require force:true. Only Unity-registered changes are covered; this revert creates no Redo step. Use unity_undo for normal Undo/Redo. Reads and execute-code are not targets.
| Parameter | Type | Description |
|---|---|---|
agentId | string | Optional: revert this agent's most recent action instead of the global newest (see unity_undo_history for ids). |
force | boolean | Also revert newer actions stacked on top of the target (Unity's linear undo). Default false. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_redo
Redo the last undone operation in Unity Editor.
| Parameter | Type | Description |
|---|---|---|
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_undo_history
Show which recorded MCP actions can still be reverted, with agent, target and current Unity Undo state.
| Parameter | Type | Description |
|---|---|---|
agentId | string | Optional: only show actions from this agent. |
count | number | Max actions to return, newest first (default 20). |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_screenshot_game
Capture a screenshot of the Game View. The screenshot is saved on the next frame render.
| Parameter | Type | Description |
|---|---|---|
path | string | Save path (default: Assets/Screenshots/GameView_timestamp.png) |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
superSize | number | Resolution multiplier (1 = normal, 2 = 2x, 4 = 4x) |
unity_screenshot_scene
Capture a screenshot of the Scene View camera. Returns immediately with the saved file path.
| Parameter | Type | Description |
|---|---|---|
height | number | Height 1-8192 (default 1080). |
path | string | Save path (default: Assets/Screenshots/SceneView_timestamp.png) |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
width | number | Width 1-8192 (default 1920), at most 33554432 pixels total. |
unity_screenshot_editor_window
Capture an existing EditorWindow to PNG (Windows PrintWindow) without requesting keyboard focus. Hidden tabs require activateTab:true; ambiguous names return id: candidates. GPU/minimized windows can refuse capture. USE ONLY ON EXPLICIT USER REQUEST; never proactively or for your own inspection. On macOS/Linux report unsupported, do not retry; use Game/Scene captures there.
| Parameter | Type | Description |
|---|---|---|
window * | string | Full type name, simple name, tab title, or id: selector from candidates. |
activateTab | boolean | Temporarily select an existing tab, then restore its predecessor (default false; newer plugins). Does not request keyboard focus. |
maxDimension | number | Max side (default 8192, clamped to GPU). Full window and crop each limited to 33554432 pixels. |
path | string | Save path ending in .png (default: Assets/Screenshots/EditorWindow_<time>.png). |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_graphics_scene_capture
Render the Scene View camera to inline PNG. Whole-pixel sizes within device limits, at most 33554432 pixels.
| Parameter | Type | Description |
|---|---|---|
height | number | Image height in pixels (default: 512) |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
width | number | Image width in pixels (default: 512) |
unity_graphics_game_capture
Render one camera to inline PNG, without Game View composition or overlay UI. Whole-pixel sizes within device limits, at most 33554432 pixels.
| Parameter | Type | Description |
|---|---|---|
cameraName | string | Active object's name/path; omitted: Camera.main. Missing explicit camera is an error. |
height | number | Image height in pixels (default: 512) |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
width | number | Image width in pixels (default: 512) |
unity_packages_list
List all installed Unity packages with their name, version, source, and status.
| Parameter | Type | Description |
|---|---|---|
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_packages_add
Add/install a Unity package by identifier (e.g. 'com.unity.cinemachine' or 'com.unity.cinemachine@3.0.0').
| Parameter | Type | Description |
|---|---|---|
identifier * | string | Package identifier, e.g. 'com.unity.cinemachine@3.0.0' |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_packages_remove
Remove/uninstall a Unity package by name.
| Parameter | Type | Description |
|---|---|---|
name * | string | Package name, e.g. 'com.unity.cinemachine' |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_packages_search
Search for Unity packages in the registry.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_packages_info
Get detailed info about an installed package including versions and dependencies.
| Parameter | Type | Description |
|---|---|---|
name * | string | Package name, e.g. 'com.unity.cinemachine' |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_queue_info
Queue depths, agents and results. Plugin metrics: http, httpCommands (admission), completedResults (cost/evictions), historyNotifications (backlog), historyPersistence (file limits/failures). Reset on reload. serverAgentState: Node agent/identity limits, leases, evictions. Accounted bytes are not heap usage.
| Parameter | Type | Description |
|---|---|---|
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_agents_list
List all active agent sessions connected to the AB Unity MCP bridge. Shows each agent's ID, connection time, last activity, current action, total actions count, queued/completed request counts, and average response time.
| Parameter | Type | Description |
|---|---|---|
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_agent_log
Get the action log for a specific agent, showing the last 100 actions with timestamps.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | The agent ID to get logs for |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_list_advanced_tools
Discover advanced Unity tools (execute them via unity_advanced_tool) without loading full schemas: search=keywords → matching tools; category=name → its tools with parameter names; tool=name → that tool's full parameter schema; no args → all category names with counts (e.g. animation, terrain, shadergraph, probuilder, uma, physics, lighting, ui, …).
| Parameter | Type | Description |
|---|---|---|
category | string | Category name → its tools with brief + parameter names. |
includeSchemas | boolean | With category: full schemas for every tool (large — prefer tool= for one). |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
search | string | Keywords, e.g. "terrain raise". Every word must match a tool's name, category, or description. |
tool | string | Exact tool name → its full parameter schema. |
unity_advanced_tool
Execute an advanced Unity tool by name (269 cached + plugin lazy-loaded; discover names via unity_list_advanced_tools search=/category=, parameters via tool=).
| Parameter | Type | Description |
|---|---|---|
tool * | string | The tool name to execute (e.g. "unity_animation_create_controller", "unity_shadergraph_create") |
params | object | Parameters to pass to the tool. Use unity_list_advanced_tools to see required parameters. |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |
unity_get_project_context
Get the project docs/guidelines the team prepared for AI agents (from Assets/MCP/Context/). No args = all context; pass a category for one document. Call early in a session.
| Parameter | Type | Description |
|---|---|---|
category | string | Optional: specific context category to fetch (e.g. 'ProjectGuidelines', 'Architecture', 'GameDesign', 'NetworkingGuidelines', 'NetworkingCSP', or any custom category). Omit to get all available contex… |
port | number | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |