scan_uasset_refs
Inspect .uasset/.umap files directly on disk without opening the editor; report referenced asset paths and optional regex matches to compare complete and stub copies.
Instructions
Lightweight BINARY scan of a .uasset/.umap on disk (NO editor load): tokenizes the raw package bytes and reports the referenced-asset-path tokens (/Game//Engine//Script) plus, optionally, tokens matching a regex pattern. A quick way to compare copies of one asset: an incomplete (stub) copy shows far fewer reference tokens than the complete one. Accepts a disk path OR a /Game|/Engine mount path.
Returns: { package_file: string, resolved_path: string, exists: bool, file_size_bytes: number, modified: string, pattern: string, ref_path_unique: int, ref_path_occurrences: number, ref_paths: [{token, count}], match_unique: int, match_occurrences: number, matches: [{token, count}] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | Optional regex (ECMAScript); tokens containing a match are counted in the 'matches' fields. | |
| name_pattern | No | Alias of `pattern` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `pattern`. | |
| package_file | Yes | Absolute .uasset/.umap path on disk, or a /Game|/Engine mount path. |