get_viewport_screenshot
Capture a screenshot of the current SketchUp viewport to visually verify the scene between modeling steps. Returns a PNG image and metadata.
Instructions
Capture the current SketchUp viewport; returns the PNG image plus a JSON text block {width, height, preset_used, style_used}.
Useful for letting Claude visually verify the scene between steps.
Parameters
max_size: largest side of the returned PNG (64..4096). Aspect ratio is taken from the current viewport; the smaller side is scaled proportionally.
view_preset: switch the camera to a standard view before snapping.
currentleaves the camera alone.zoom_extents: call view.zoom_extents before snapping.
style: temporarily flip a small set of rendering_options keys.
defaultleaves them alone.restore_view: when true (default), camera and rendering_options are snapshotted before mutation and restored after the snapshot, so the user's viewport is unchanged.
If the connection drops mid-response the call is retried automatically; the viewport may briefly flicker in that rare case.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Temporary rendering style for the shot; 'default' leaves rendering options alone | default |
| max_size | No | Largest side of the returned PNG in pixels; the other side follows the viewport aspect ratio | |
| view_preset | No | Camera preset to switch to before snapping; 'current' leaves the camera alone | current |
| restore_view | No | Restore the camera and rendering options after the shot, leaving the user's viewport unchanged | |
| zoom_extents | No | Zoom to fit the whole model before snapping |