uloop-get-logs
uloop get-logs
Retrieve logs from Unity Console.
Usage
uloop get-logs [options]
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
--log-type |
string | All |
Log type filter: Error, Warning, Log, All |
--max-count |
integer | 100 |
Maximum number of logs to retrieve |
--search-text |
string | - | Text to search within logs |
--include-stack-trace |
boolean | false |
Include stack trace in output |
--use-regex |
boolean | false |
Use regex for search |
--search-in-stack-trace |
boolean | false |
Search within stack trace |
Global Options
| Option | Description |
|---|---|
--project-path <path> |
Optional. Use only when the target Unity project is not the current directory. |
Examples
# Get all logs
uloop get-logs
# Get only errors
uloop get-logs --log-type Error
# Search for specific text
uloop get-logs --search-text "NullReference"
# Regex search
uloop get-logs --search-text "Missing.*Component" --use-regex
Output
Returns JSON with:
TotalCount(number): Total logs available before max-count clippingDisplayedCount(number): Logs returned in this response (≤--max-count)LogType(string): The--log-typefilter that was appliedMaxCount(number): The--max-countcap that was appliedSearchText(string): The--search-textfilter that was applied (empty when omitted)IncludeStackTrace(boolean): Whether stack traces are included inLogs[]Logs(array): Each entry has:Type(string):"Error","Warning", or"Log"Message(string): Log message bodyStackTrace(string): Stack trace text. Empty when--include-stack-traceisfalse.
More from hatayama/uloopmcp
uloop-find-game-objects
Use first when the user asks about the currently selected GameObject in the Unity Hierarchy. Inspect selected object details with `--search-mode Selected` before using `execute-dynamic-code`. Use when you need to: (1) Get details and component properties for selected GameObject(s), (2) Search for objects by name, regex, or path, (3) Find objects with specific components, tags, or layers. Use get-hierarchy when the child tree under the selection is needed. Returns hierarchy paths, active state, tags, layers, and components (or writes to a file when multiple GameObjects are selected).
37uloop-unity-search
Search Unity project assets using Unity Search engine. Use when you need to: (1) Find scenes, prefabs, scripts, materials, or other assets, (2) Filter assets by file extension or type, (3) Search with Unity Search query syntax and specific providers. Returns asset paths and metadata.
36uloop-clear-console
Clear all Unity Console log entries. Use when you need to: (1) Clear console before running tests or compilation, (2) Start a fresh debugging session, (3) Remove noisy logs to isolate specific output.
36uloop-run-tests
Execute Unity Test Runner and get detailed results. Use when you need to: (1) Run EditMode or PlayMode unit tests, (2) Verify code changes pass all tests, (3) Diagnose test failures with error messages and stack traces. Single-flight only — never run multiple `uloop run-tests` in parallel.
35uloop-control-play-mode
Control Unity Editor play mode (play/stop/pause). Use when you need to: (1) Start play mode to test game behavior, (2) Stop play mode to return to edit mode, (3) Pause play mode for frame-by-frame inspection.
35uloop-compile
Compile Unity project and report errors/warnings. Use when you need to: (1) Verify code compiles after C# file edits, (2) Check for compile errors before testing, (3) Force full recompilation with Domain Reload. Returns error and warning counts.
34