Screenshot a scene or model
godot_screenshotRender a scene or .glb/.gltf model to PNG from set camera views, with view-coverage text so you can spot empty or off-screen pictures and inspect what you built.
Instructions
Render a scene, or a .glb/.gltf model framed by a camera and lit, to a PNG with Godot 4.7 (Compatibility renderer, works on software OpenGL; on Linux without a display it uses xvfb-run). Returns the picture and a short text: how much of each view is drawn and where, so you can tell an empty or off-screen picture even without reading the image. For a model, views front (from +Z, where models face), back, side, top and iso; several make a grid. width and height are per view; frames lets the scene settle before the picture. The PNG is written next to the model (car.glb gives car.png) or, for a scene, to .godot/godotwright/screenshot.png. An error result when Godot is missing or the scene cannot run. Use it to look at what you built. Without Godot, godot_model_view shows a model as text; to check behaviour rather than looks, use godot_play.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The project folder, or any file or folder inside it (Godotwright walks up to project.godot). Relative paths start at the server's folder. Default: the current project. | |
| model | No | a .glb or .gltf file to look at instead of a scene | |
| scene | No | the res:// scene to render (default: the main scene) | |
| views | No | camera views for a model or a 3D scene without a camera (default [iso]) | |
| width | No | width of one view (default 640) | |
| frames | No | frames to run before the picture (default 10) | |
| height | No | height of one view (default 360) |