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
| Name | Type | Required | Description |
|---|---|---|---|
action | Literal['import', 'create', 'modify', 'delete', 'duplicate', 'move', 'rename', 'create_folder'] | yes | Feature action to perform. |
path | str | None | — | Asset path required for asset operations; search defaults to Assets. Ignored for bundle assignment inspection. |
asset_type | str | None | — | Asset type (e.g., 'Material', 'Folder') - required for 'create'. Note: For ScriptableObjects, use manage_scriptable_object. |
properties | dict[str, Any] | str | None | — | Dictionary of properties for 'create'/'modify'. Keys are property names, values are property values. |
destination | str | None | — | Target path for 'duplicate'/'move'. |
page_size | int | str | None | — | Page size: search 1-1000 (default 50), previews 1-32 (default 32), bundle inspection 1-100 (default 50). |
page_number | int | str | None | — | Page number for pagination (1-based). |
recursive | bool | — | Include indirect bundle dependencies (default false). |
scan_root | str | None | — | Reference actions: candidate/dependency folder (Assets by default). |
max_assets | int | 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_work | int | str | None | — | Reference actions: at most 1-4000000 node/edge work units; default 10000. |
reference_revision | str | None | — | Recheck the same bounded read/preview or guard move/delete immediately before mutation. |
await_graph_seconds | float | None | — | Asset writes only: wait 0..30 seconds for the existing active graph receipt and first diff page; never activates a graph. |
unity_instance | str | 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.
{
"action": "create_folder",
"path": "Assets/PrototypeScenes"
}