asset_bundles
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
Inspect asset bundles, their contents and dependencies. Read-only inspection; results can change with Unity state. Action inputs: list_asset_bundles: no action-specific required inputs. get_bundle_assets: requires bundle_name. get_bundle_dependencies: requires bundle_name.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | Literal['list_asset_bundles', 'get_bundle_assets', 'get_bundle_dependencies'] | yes | Feature action to perform. |
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). |
bundle_name | str | None | — | Registered bundle assignment name for get_bundle_* actions. |
recursive | bool | — | Include indirect bundle dependencies (default false). |
include_dependencies | bool | — | get_bundle_assets only: include the first bounded dependency page without building bundles. |
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
List the first 20 bundle assignments in the selected project. Use a returned bundle name for asset or dependency inspection.
{
"action": "list_asset_bundles",
"page_size": 20,
"page_number": 1
}