Skip to main content

asset_edit

Auto-generated from the Python tool registry. Do not hand-edit outside <!-- examples:start --><!-- examples:end --> blocks — the generator (tools/generate_docs_reference.py) will overwrite them.

Group: assets  ·  Module: services.registry.capability_adapter

Maturity: stable (support status; independent of enabled state, readiness and permissions).

Description​

Create, import, modify, duplicate, move or delete assets and folders. Action inputs: import: requires path. create: requires path, asset_type. modify: requires path, properties. delete: requires path. duplicate: requires path. move: requires path, destination; success data includes path, verification. rename: requires path, destination; excludes non-null reference_revision; alias of move; success data includes path, verification. create_folder: requires path.

Parameters​

NameTypeRequiredDescription
actionLiteral['import', 'create', 'modify', 'delete', 'duplicate', 'move', 'rename', 'create_folder']yesFeature action to perform.
pathstr | None—Asset path required for asset operations; search defaults to Assets. Ignored for bundle assignment inspection.
asset_typestr | None—Asset type (e.g., 'Material', 'Folder') - required for 'create'. Note: For ScriptableObjects, use manage_scriptable_object.
propertiesdict[str, Any] | str | None—Dictionary of properties for 'create'/'modify'. Keys are property names, values are property values.
destinationstr | None—Target path for 'duplicate'/'move'.
page_sizeint | str | None—Page size: search 1-1000 (default 50), previews 1-32 (default 32), bundle inspection 1-100 (default 50).
page_numberint | str | None—Page number for pagination (1-based).
recursivebool—Include indirect bundle dependencies (default false).
scan_rootstr | None—Reference actions: candidate/dependency folder (Assets by default).
max_assetsint | str | None—Reference actions: 1-250000; default 1024. Reverse scans count distinct eligible files, excluding folders/duplicates; forward scans count visited assets including the source.
max_workint | str | None—Reference actions: at most 1-4000000 node/edge work units; default 10000.
reference_revisionstr | None—Recheck the same bounded read/preview or guard move/delete immediately before mutation.
await_graph_secondsfloat | None—Asset writes only: wait 0..30 seconds for the existing active graph receipt and first diff page; never activates a graph.
unity_instancestr | int | None—Target Unity instance for this call: Name@hash or hash prefix; an integer selects only that exact port over stdio and is rejected over HTTP. Read mcpforunity://instances for available targets. Omit to use the legacy active selection or the sole available instance.

Returns​

A dict containing the Unity response. The exact shape depends on the action.

Examples​

Create a folder for scene prototypes. Choose an unused path under an existing parent folder.

MCP arguments
{
"action": "create_folder",
"path": "Assets/PrototypeScenes"
}