project_trace_reference_chain
Trace Unreal asset reference chains from a starting package, returning reachable packages up to a depth limit. Supports in/out direction and stop-on-class for dependency discovery.
Instructions
BFS trace of the reference chain from a starting package.
Traverses the asset reference graph and returns all reachable packages within max_depth hops. Deduplicates visited nodes. Truncates when max_nodes is hit (sets truncated=true).
Args: start_package: Starting package (e.g. '/Game/Materials/M_DemoB'). direction: 'in' (who references start) or 'out' (what start references). max_depth: Maximum BFS depth. Default 3. stop_on_class: Stop expanding a node if its class is in this list. max_nodes: Hard cap on total nodes in result. Default 500.
Returns: JSON StructuredResult with outputs.nodes list: [{package, depth, via}] plus depth_reached, truncated.
KB: see knowledge_base/12_MCP_TOOL_USAGE_GUIDE.md#overview Example: project_trace_reference_chain(start_package="Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | in | |
| max_depth | No | ||
| max_nodes | No | ||
| start_package | Yes | ||
| stop_on_class | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |