open_in_viewer
Launches a vehicle or design in an interactive 3D browser viewer so the player can orbit and inspect it directly.
Instructions
Open a vehicle or design in the interactive 3D viewer in the player's web browser so they can orbit and inspect it themselves. You cannot see that window: use inspect_view or the preview tools to look yourself. Writes one temporary HTML page, replaced on each call, and changes nothing else. Uses installed component meshes with explicit fallbacks; articulated vehicles show the largest body alone unless body_id is given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Saved vehicle, or numeric Workshop item with source=workshop. | |
| spec | No | Hull spec, partial or full (fields: hull_design_guide topic=spec); merged over preset or design. Lengths in metres. | |
| patch | No | JSON-Patch ops applied last, e.g. [{"op": "replace", "path": "/superstructure/bridge/height", "value": 2.5}]; list items can be named instead of indexed. | |
| design | No | Stored hull, land or imported draft to show. | |
| preset | No | Built-in hull preset to start from, e.g. 'runabout'; names from list_hull_presets. | |
| 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. | |
| spec_path | No | Path to a .json file holding a spec or a stored design, read before spec and patch. | |
| diagnostics | No | Overlay preflight faults and steering arrows; needs design alone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |