unity-console

Capture, filter, and export Unity Editor console logs and settings.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-console-du-qwq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-console
Source: https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications/tree/main/.agents/skills/unity-skills/skills/console
Command: npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-console-du-qwq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Debugging Unity projects requires constantly switching to the Editor console to read errors, warnings, and runtime logs. This Skill lets an AI agent capture, query, filter, and export console output programmatically, so log inspection fits directly into automated development workflows. ## Core Features & Use Cases - Log Capture & Querying: Start/stop log capture around play mode sessions, then retrieve logs filtered by type (Error/Warning/Log) or substring, with timestamps or file/line info. - Console Control: Write custom log entries, clear the console, export logs to a file, and toggle settings like collapse, clear-on-play, and pause-on-error. - Statistics: Get log counts grouped by type to quickly assess project health. - Use Case: Start capture, enter play mode, run gameplay, then pull only Error-type logs to verify a session ran cleanly — all without opening the Editor window. ## Quick Start Start console capture, run the game in play mode, then show me all error logs from the session.

Frequently Asked Questions about unity-console

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read Unity console logs programmatically?

Use console_get_logs to read Unity Console history directly, or call console_start_capture first to record logs with timestamps during a session. Filter results by type (Error, Warning, Log) or a substring, and limit the number of returned entries.

How to filter Unity console errors during play mode?

Call console_start_capture before entering play mode, then after stopping, call console_get_logs with type set to Error. This returns only error entries from the captured buffer, making it easy to verify a clean run.

What is the difference between console_get_logs and debug_get_logs?

console_get_logs reads the captured buffer or console history managed by the console module, while debug_get_logs reads all console entries through the debug module. For compilation errors or stack traces, use the debug module instead.

Can I export Unity console logs to a file?

Yes, console_export writes logs to a file, defaulting to Assets/console_log.txt. It uses the captured buffer if capture is active, otherwise it reads directly from Unity Console history, and returns the path and entry count.

Why does console_get_stats show different fields sometimes?

The return shape depends on mode. In capture mode it reports logs, warnings, errors, exceptions, and asserts; in direct mode reading console history, exceptions and asserts are folded into errors and not reported separately.