get_console_logs
Fetch Unity Editor console logs with pagination, filter by type (info, warning, error), and control stack trace to minimize token usage.
Instructions
Retrieves logs from the Unity console with pagination support to avoid token limits
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of logs to return (defaults to 50, max 500 to avoid token limits) | |
| offset | No | Starting index for pagination (0-based, defaults to 0) | |
| logType | No | The type of logs to retrieve (info, warning, error) - defaults to all logs if not specified | |
| includeStackTrace | No | Whether to include stack trace in logs. Set to false to save 80-90% tokens. Default: true |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | No | Console log entries | |
| limit | No | Pagination limit used | |
| total | No | Total number of matching logs available | |
| offset | No | Pagination offset used | |
| message | No | Human-readable summary or error | |
| success | No | Whether the logs were retrieved |