get_debug_output
Retrieve real-time debug output and error messages from the Godot game engine to monitor project execution and troubleshoot issues.
Instructions
Get the current debug output and errors
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:702-709 (schema)Defines the tool schema with empty input parameters and description in the ListTools response.name: 'get_debug_output', description: 'Get the current debug output and errors', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/index.ts:938-939 (registration)Registers the tool handler in the CallToolRequestSchema switch statement, dispatching to the implementation method.case 'get_debug_output': return await this.handleGetDebugOutput();
- src/index.ts:1158-1184 (handler)The core handler function that checks for an active Godot process and returns its accumulated stdout (output) and stderr (errors) as JSON, or an error if no process is running.private async handleGetDebugOutput() { if (!this.activeProcess) { return this.createErrorResponse( 'No active Godot process.', [ 'Use run_project to start a Godot project first', 'Check if the Godot process crashed unexpectedly', ] ); } return { content: [ { type: 'text', text: JSON.stringify( { output: this.activeProcess.output, errors: this.activeProcess.errors, }, null, 2 ), }, ], }; }