get_compilation_errors
Get current compilation errors and warnings without triggering a new compilation. Returns cached results from the last compilation.
Category: Code
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
include_warnings |
boolean | true |
Include warnings in the result (default: true) | |
file_filter |
string | Filter errors by file path (partial match) | ||
include_source_context |
boolean | true |
Include source code context around errors (default: true) |
Example call
Section titled “Example call”The arguments below are the required ones; add the optional ones you need.
{ "name": "get_compilation_errors", "arguments": {}}In SuperSave mode
Section titled “In SuperSave mode”When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "get_compilation_errors", "args": { … }}. See SuperSave mode.
Source
Section titled “Source”Generated from Assets/NanoraUnityMCP/Editor/Tools/GetCompilationErrorsTool.cs (version 1.2.1). The client receives the same schema from tools/list.