validate_import_result
Verifies an imported asset exists, matches expected class, and checks dependency metadata and saved state. Use after importing textures, meshes, or skeletal assets to confirm successful load.
Instructions
Validate that an imported asset exists and matches expectations.
Use immediately after import_texture, import_static_mesh, import_skeletal_mesh, or generative imports to prove the asset loaded, has the expected class, has dependency/reference metadata, and is not still dirty when saved output is required.
Args: expected_asset_path: Imported asset path, e.g. "/Game/Meshes/SM_Table". expected_class: Optional expected class substring, e.g. "StaticMesh". source_file: Optional original OS file path to verify still exists. require_saved: Warn when the package is still dirty.
Returns: StructuredResult JSON with outputs: exists, class_name, class_matches, dirty, source_file_exists, dependency_count, referencer_count, valid.
KB: see knowledge_base/12_MCP_TOOL_USAGE_GUIDE.md#b2-graph-aware-diagnostics-diagnosticstoolspy Example: validate_import_result(expected_asset_path="/Game/MCP_Test/SM_Example", expected_class="StaticMesh")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_file | No | ||
| require_saved | No | ||
| expected_class | No | ||
| expected_asset_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |