export_asset_as_text
Dump any Unreal asset as stable, canonical text for diffing, VCS snapshots, and review, returning inline text, an MD5 content hash, and an optional file, writing full dump to Saved/Exports/Text.
Instructions
Produce a CANONICAL, STABLE text dump of ANY asset (Blueprint, DataTable, Material, DataAsset, ...) for external diff / VCS snapshot / review, without the volatile bits of the binary .uasset. format='json' (default) gives a deterministic sorted UPROPERTY dump (a UDataTable uses its native GetTableAsJSON writer); format='t3d' gives the engine's UExporter T3D text. Returns the text inline (capped), a whole-text MD5 content hash for change detection, and writes the full dump to Saved/Exports/Text. This is the primitive under the diff tools.
Returns: { asset_path: string, object_path: string, asset_class: string, format: string, text: string, text_length: int, truncated: bool, content_hash: string, export_file_path: string, written: bool, message: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 'json' (default; deterministic reflection / DataTable-JSON) or 't3d' (UExporter T3D). | |
| asset_path | Yes | Object path or /Game package path of the asset to dump. | |
| write_file | No | Optional bool (default true). Also write the full dump under Saved/Exports/Text. |