description:Retrieve Unity Editor logs from the MCP plugin's `LogCollector`, optionally filtered by log type or time window. Useful for debugging and monitoring Editor activity.
metadata:
generated-by:mcp-plugin-dotnet
---
# Console / Get Logs
Retrieves Unity Editor logs. Useful for debugging and monitoring Unity Editor activity.
## Inputs
-`maxEntries` (default 100, minimum 1) — caps the size of the returned array.
-`logTypeFilter` — Unity `LogType` filter; `null` returns all severities.
-`includeStackTrace` (default `false`) — include stack-trace strings in each entry.
-`lastMinutes` (default 0) — when non-zero, only logs from the last N minutes are returned.
-`sinceSequence` (default 0) — every entry carries a `sequence` number. When greater than 0, only entries with a higher `sequence` are returned, oldest first, up to `maxEntries`.
## Polling
To read only what is new, pass the highest `sequence` you have received as `sinceSequence`; if the result has `maxEntries` entries, call again with the new highest `sequence` to continue. If returned sequences are lower than your cursor, the log restarted.
| `sinceSequence` | `integer` | No | Return only entries whose `sequence` is greater than this value, oldest first. If 0, returns the most recent entries. Default: 0 |