get_reference_path
Trace the shortest AssetRegistry reference chain to show what keeps an Unreal asset alive, why it may be undeletable, or how assets connect.
Instructions
Find the shortest reference CHAIN through the AssetRegistry dependency graph: with from, the shortest from -> ... -> target (walking dependencies); without from, the shortest chain from a root (a package nothing references) DOWN to target (walking referencers) -- i.e. 'what keeps target alive / why is it undeletable'. get_asset_referencers gives the direct edges; this gives the PATH.
Returns: { target: string, target_package: string, from: string, dependency_type: string, found: bool, reached_root: bool, chain: [string], chain_length: int, direct_referencers: [string], direct_referencer_count: int, message: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Optional starting hub/root asset; when set, traces from -> target via dependencies instead of the referencer-root chain. | |
| target | Yes | The asset whose reference chain to trace (object path or /Game package path). | |
| max_depth | No | Max chain depth to search (optional, default 16; clamped 1..64). | |
| dependency_type | No | Optional "hard"|"soft"|"all" (case-insensitive, default "all"). Filters BOTH BFS directions (the from->target dependency walk and the referencer-root walk) and the always-computed direct_referencers list via the AssetRegistry hard/soft FDependencyQuery split; "all" leaves them unfiltered. |