Download the element thumbnail
onshape_get_thumbnailFetch the saved thumbnail of an Onshape document element and write it to a PNG file, letting you specify size and output location.
Instructions
Save Onshape's stored thumbnail. Thumbnails are generated asynchronously and lag edits — prefer onshape_shaded_view to see the current state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws | Yes | Workspace id — the <ws> segment of the document URL. | |
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. | |
| out | No | Output PNG path (default onshape-thumb-<timestamp>.png). | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| size | No | Thumbnail size, e.g. "600x340" or "300x300" (default 600x340). | |
| return_image | No | Also return the PNG inline (default true). |