get_debug_output
Retrieve captured stdout/stderr from a spawned Godot project to diagnose script errors, missing nodes, and crash backtraces, even after the process exits or crashes.
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. Still works after the process exits or crashes: the session clears itself on exit but the captured logs are retained until stop_project. 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 |
|---|---|---|---|
| tip | No | ||
| errors | No | ||
| output | No | ||
| running | No | ||
| attached | No | ||
| exitCode | No |