get_material_graph_info
Read a UMaterial's expression graph by asset path, listing nodes, inputs, and connections for AI-driven material inspection and dependency tracing.
Instructions
Read the full expression graph of a UMaterial (nodes + connections). Enumerates UMaterial::GetExpressions() and walks each expression's FExpressionInput Inputs[] array. For every connected input, the connection is also flattened into the top-level connections[] list for easy graph-walking.
Returns: { material_path: string, node_count: number, nodes: [{ name: string, class: string, inputs: [{ index: number, input_name: string, source?: string, source_output_index?: number }], input_count: number }], connection_count: number, connections: [{ from: string, from_output_index: number, to: string, to_input: string }] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material_path | Yes | Full asset path of the UMaterial. |