get_debug_output
Retrieve current debug output and errors from the Godot game engine via the Model Context Protocol server to monitor project execution and diagnose issues.
Instructions
Get the current debug output and errors
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1158-1184 (handler)The handler function that executes the tool logic. Returns JSON containing stdout 'output' and stderr 'errors' from the currently running Godot process (set by 'run_project'), or an error if no process is active.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 ), }, ], }; }
- src/index.ts:702-709 (registration)Registration of the tool in the ListToolsRequestSchema handler, defining its name, description, and input schema (no input parameters required).name: 'get_debug_output', description: 'Get the current debug output and errors', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/index.ts:939-940 (registration)Registration of the tool handler in the CallToolRequestSchema switch statement, routing tool calls to the handleGetDebugOutput method.return await this.handleGetDebugOutput(); case 'stop_project':
- src/index.ts:705-708 (schema)Input schema definition for the tool: an empty object with no properties or required fields.type: 'object', properties: {}, required: [], },
- src/index.ts:39-43 (helper)TypeScript interface defining the structure of the active Godot process data (process, output, errors) used by the handler.interface GodotProcess { process: any; output: string[]; errors: string[]; }