preview_game_vehicle
Render a saved or Workshop Stormworks vehicle to an image with size and part summary, optionally focusing on one body or detail for inspection.
Instructions
Render a vehicle from the player's vehicles folder or an installed Workshop item and return the image plus a size and part summary, e.g. to study the player's existing boats. Uses installed component meshes, reporting any footprint fallbacks. Articulated vehicles show the largest body alone unless body_id is given. inspect_view points a camera at one detail; drafts use preview_vehicle. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Vehicle file name without .xml in the player's vehicles folder (see list_game_vehicles); with source=workshop, the numeric Steam Workshop item ID. | |
| source | No | "vehicles" (default) reads the player's vehicles folder; "workshop" reads an installed Workshop item by numeric ID. | vehicles |
| body_id | No | unique_id of one body of a multi-body vehicle; default is the largest body. Saved vehicles only. | |
| renderer | No | "auto" (default) lights the scene like the game, on the GPU when available; "gpu"/"cpu" force one; "flat" is fastest and unlit, with block outlines for counting blocks. |