get_console_logs
Gets recent log messages from the Unity Console
分類: 診断
| 名前 | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
count |
integer | 50 |
Maximum number of log entries to return | |
max_message_length |
integer | 4000 |
Maximum characters per entry (1-64000); truncated entries are marked. | |
log_type |
string | "All" |
Filter by log type (All, Log, Warning, Error) 値: All, Log, Warning, Error |
|
clear |
boolean | false |
Clear the console after retrieving logs |
呼び出しの例
Section titled “呼び出しの例”必須の引数だけを入れています。ほかは必要に応じて足してください。
{ "name": "get_console_logs", "arguments": {}}SuperSave モードでは
Section titled “SuperSave モードでは”Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "get_console_logs", "args": { … }} の形で呼びます。SuperSave モードを参照。
Assets/NanoraUnityMCP/Editor/Tools/GetConsoleLogsTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。