take_screenshot
Render a Godot scene headlessly and capture a screenshot as PNG. Use for standalone scenes without autoload dependencies.
Instructions
Render a scene headlessly via --script and capture a PNG. Best for standalone scenes without autoload deps. For real game scenes, prefer test_take_screenshot against a running game.
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>",
"scenePath": "<scenePath>"
},
"name": "take_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenePath | Yes | Path to the scene file (relative to project) | |
| outputPath | No | Optional: where to save PNG (user:// or res:// or project-relative). Default: user://screenshot.png | |
| projectPath | Yes | Path to the Godot project directory |