get_debug_output
Read captured stdout/stderr from a running or crashed Godot project to diagnose script errors, missing nodes and crash backtraces. Logs persist after exit until the project is stopped.
Instructions
Read captured stdout/stderr from a spawned Godot project. Use whenever a runtime tool fails unexpectedly: script errors, missing nodes and crash backtraces surface here. Still works after the process exits or crashes; the logs are kept until stop_project. Returns: projectPath, sessionMode, output and errors (last limit lines each, default 200), running (false after exit) and exitCode after exit. An attached session captures nothing: output, errors and running are null and warnings leads.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_debug_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max lines to return, a whole number of 1 or more (default: 200, from end of output) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tip | No | ||
| errors | Yes | Null in an attached session, which captures nothing. | |
| output | Yes | Null in an attached session, which captures nothing. | |
| running | Yes | ||
| exitCode | No | ||
| warnings | No | ||
| projectPath | Yes | ||
| sessionMode | Yes |