run_and_capture
Run a Godot project for a set duration, capture a screenshot, and stop automatically. Use for full-game screenshots without manual interaction.
Instructions
Run the project for a duration, capture a screenshot, then stop. Runs the full game (unlike capture_screenshot) without needing run_interactive (unlike game_screenshot). Requires a display server.
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": "run_and_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | No | Optional: Specific scene to run | |
| duration | No | How long to run the game in seconds before capturing (default: 3) | |
| outputPath | No | Path where the screenshot PNG will be saved. Defaults to "<projectPath>/screenshots/capture.png". | |
| projectPath | Yes | Path to the Godot project directory |