capture_screenshot
Run a Godot scene and capture its rendered output as an image to visually verify the scene without manual inspection.
Instructions
Run a Godot scene and capture a screenshot of the rendered output. Returns the image so the agent can visually verify the scene. Requires a real display (not --headless). On headless Linux, wrap Godot with xvfb-run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>"
},
"name": "capture_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenePath | No | Optional res:// path to a .tscn file to run. Defaults to the project main scene. | |
| timeoutMs | No | Hard timeout in milliseconds (default 15000). Godot is killed if the capture takes longer. | |
| waitFrames | No | Number of frames to render before capture (default 10). Lets shaders, physics, and layout settle. | |
| projectPath | Yes | Path to the directory containing project.godot |