capture_views
Render the active SolidWorks part or assembly to PNG screenshots in multiple views to verify geometry. Supports cut planes for internal details.
Instructions
Capturar vistas — render the active part OR assembly to PNG screenshots so you can SEE the model and verify geometry. Read-only.
ADVERTENCIA (privacidad): las capturas se ENVÍAN a la API de Claude. Un screenshot puede mostrar logos, números de parte OEM o geometría confidencial. Decisión de piloto: el cliente usa su propia API key y firma el flujo de datos. Usa esta herramienta consciente de eso. [en: screenshots are SENT to the Claude API; pixels are NOT redacted.]
Cadence — render at CHECKPOINTS and at the END of a build, not after
every feature: each call is one image per view (heavy tokens). Between
features trust the cheap signals (mutator receipt.feature_count,
batch summary); a final render before declaring a part done is
mandatory (or bundle it via verify_build_report capture_view_names).
Per-feature renders are for debugging a flaky build.
Args: views: subset of ["iso", "front", "top", "right", "trimetric"]. Default (None) = ["iso", "front", "top", "right"]. Unknown view name → ValueError (fail fast, no silent default). with_dims: accepted but a v1 NO-OP (dimension-annotation overlay needs a much larger surface). The param exists so the signature is stable. TODO(with_dims). section: optional {"plane": "front"|"top"|"right" (or Spanish UI name), "offset_mm": float} — render each view through a graphics CUT PLANE so INTERNAL cuts the outer silhouette hides (pockets, banded/saddle cuts, bores) become visible. offset_mm is signed from the standard plane (0 = through origin). Use this to diff against a drawing's SECTION view. Standard projections cannot show an occluded internal cut; for a purely internal feature an iso render proves nothing — also confirm it via list_faces.
Returns a list: one inline image per requested view (Claude sees
them directly), followed by a summary dict with the resolved
views, the local PNG paths, with_dims, and a privacy note.
Caveat: requires a part open in SolidWorks. Image bytes are NOT name-redacted (see ADVERTENCIA). Temp PNGs live in the OS temp dir and are read lazily when the result is serialized — they are not deleted by this tool.
Example — verify a base plate before drilling: extrude_sketch(25.0) capture_views(views=["iso", "front"]) # eyeball it get_bounding_box() # confirm extents
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| views | No | ||
| section | No | ||
| with_dims | No |