コンテンツにスキップ

get_compilation_errors

Get current compilation errors and warnings without triggering a new compilation. Returns cached results from the last compilation.

分類: コード

名前 型 必須 既定値 説明
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)

必須の引数だけを入れています。ほかは必要に応じて足してください。

{
"name": "get_compilation_errors",
"arguments": {}
}

Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "get_compilation_errors", "args": { … }} の形で呼びます。SuperSave モードを参照。

Assets/NanoraUnityMCP/Editor/Tools/GetCompilationErrorsTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。