unity-console

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

Updated Aug 31, 2026
One-click install
npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-console-pikachu0310
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-console
Source: https://github.com/pikachu0310/codex-agent-ops-public/tree/main/.agents/skills/unity-skills/skills/console
Command: npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-console-pikachu0310

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Debugging Unity projects requires manually reading the Editor console, which makes it hard for an AI agent to inspect errors, warnings, and runtime logs or to mark its own actions in the log stream. ## Core Features & Use Cases - Log Capture & Query: Start and stop log capture around Play mode sessions, then retrieve logs filtered by type (Error/Warning/Log) and substring. - Console Control: Clear the console, write custom log messages, toggle collapse, clear-on-play, and pause-on-error settings. - Statistics & Export: Get per-type log counts and export console output to a file such as Assets/console_log.txt. - Use Case: Start capture, enter Play mode, run gameplay, then pull only Error entries to verify a scene runs cleanly, and export the full log for the record. ## Quick Start Start console capture, run the game in Play mode, then show me only the errors from the Unity console.

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 from an AI agent or script?

Call console_get_logs through the unity_skills bridge to read Unity Console history directly. You can filter by type (Error, Warning, Log), apply a substring filter, and limit the number of returned entries.

How to capture Unity logs during Play mode?

Call console_start_capture before entering Play mode, run the gameplay, then call console_get_logs to retrieve the captured buffer with timestamps. Call console_stop_capture when finished to free resources.

What is the difference between console_get_logs and debug_get_logs in Unity skills?

console_get_logs reads the captured buffer or console history, while debug_get_logs reads all console entries. For compilation errors use debug_check_compilation, and for stack traces use debug_get_stack_trace from the debug module.

Can I export Unity console output to a file?

Yes, console_export writes console logs to a file, defaulting to Assets/console_log.txt. It uses the captured buffer when capture is active, otherwise it reads directly from Unity Console history.

Why does console_get_stats show different fields sometimes?

The return shape depends on mode. Capture mode reports logs, warnings, errors, exceptions, and asserts, while direct mode reading console history only reports logs, warnings, and errors, folding exceptions and asserts into errors.