Download the element thumbnail
onshape_get_thumbnailRetrieve and save Onshape's stored document thumbnail as a PNG, with optional size and inline image return. Note the thumbnail updates asynchronously and may lag behind recent edits.
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). |