get_viewport_screenshot
Capture the current SketchUp viewport as a PNG for visual scene verification between steps. Optionally adjust view preset, style, or zoom extents before capture.
Instructions
Capture the current SketchUp viewport as a PNG and return it as an MCP Image.
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.
Note on operation order (Ruby handler): snapshot → preset → style →
zoom_extents → write_image → restore. Restore runs in an outer ensure
block, so an exception anywhere between snapshot and write_image still
leaves the viewport in its original state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_size | No | ||
| view_preset | No | current | |
| zoom_extents | No | ||
| style | No | default | |
| restore_view | No |