unity_console_log
Retrieve recent Unity console log messages filtered by type (error, warning, info) and stack trace details.
Instructions
Get recent Unity console log messages (errors, warnings, info).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "unity_console_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. | |
| type | No | Filter: 'error', 'warning', 'info', or 'all' (default: 'all') | |
| count | No | Number of recent messages to retrieve (default: 50) | |
| maxStackFrames | No | Frames kept per retained trace (default: 6) | |
| includeStackTrace | No | Traces to keep: 'errors' (default, error-like entries only, trimmed), 'all', 'none'. |