debug_output
Retrieve real-time console output from a running Godot game, capturing print calls, stdout, stderr, and script errors with file and line numbers. Output is drained on each call, showing only new messages.
Instructions
Read console output the running game produced - print() calls, stdout, stderr, and runtime script errors with their source location. Returns: captured lines with category and originating file/line. THIS IS THE ONLY WAY to see what the game actually did; the language server reports whether code compiles, not what it printed. Output is drained on each call, so successive calls return only what is new.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Seconds to wait for output (default 1) | |
| clear | No | Drain the buffer (default true) |