mat_get_compile_diagnostics
Retrieve compiler diagnostics for a Material asset, including errors, warnings, and expression count, to verify if it compiles cleanly.
Instructions
Get compiler-derived diagnostics for a Material asset.
Args: material_path: Full asset path (e.g. '/Game/Materials/M_DemoB') include_warnings: Include warning-level items (default True)
Returns: StructuredResult with outputs: compile_clean — bool errors[] — structured error items warnings[] — structured warning items expression_count — int compiler_summary — str had_errors — bool
KB: see knowledge_base/32_AGENT_PLAYABLE_SLICE_RECIPE.md#overview Example: mat_get_compile_diagnostics(material_path="/Game/MCP_Test/M_Example")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"material_path": "<material_path>"
},
"name": "mat_get_compile_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material_path | Yes | ||
| include_warnings | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |