get_debug_output
Retrieve captured stdout and stderr from a spawned Godot project to debug script errors, missing nodes, or crash backtraces. Requires run_project mode; attached mode returns empty arrays.
Instructions
Get captured stdout/stderr from a spawned Godot project. Use whenever runtime tools fail unexpectedly — script errors, missing nodes, and crash backtraces all surface here. Requires run_project (not attach_project; attached mode does not capture output). Returns: output/errors (last limit lines each, default 200), running (false after exit, null when attached), exitCode after exit, attached:true with empty arrays in attached mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max lines to return (default: 200, from end of output) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | ||
| errors | No | ||
| running | No | ||
| exitCode | No | ||
| attached | No | ||
| tip | No |