Skip to content

get_console_logs

Gets recent log messages from the Unity Console

Category: Diagnostics

Name Type Required Default Description
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) One of: All, Log, Warning, Error
clear boolean false Clear the console after retrieving logs

The arguments below are the required ones; add the optional ones you need.

{
"name": "get_console_logs",
"arguments": {}
}

When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "get_console_logs", "args": { … }}. See SuperSave mode.

Generated from Assets/NanoraUnityMCP/Editor/Tools/GetConsoleLogsTool.cs (version 1.2.1). The client receives the same schema from tools/list.