screenshot_compare_with_marker
Take before and after screenshots from a fixed camera to visually compare CAD changes, using a timeline marker to set the 'before' state.
Instructions
Capture before/after screenshots from the same camera by rolling the
timeline marker to before_marker_position, screenshotting, restoring
the original marker position, and screenshotting again.
Use this to give yourself or the user a clean visual diff of a change you just made — much more convincing than describing the change in words when the geometric delta is subtle. Same camera both shots so the comparison is honest.
Restore semantics: if anything fails after the marker is moved, this tool
attempts to roll back to the original position before returning. The
restore_marker_failed error indicates the rollback itself failed — in
that case the design may be left at an intermediate marker position and
the user should manually drag the marker back.
Args: before_marker_position: Timeline marker position to capture as the "before" state. Must be in [0, timeline.count]. Use 0 for the initial empty state, or the index just before a specific feature. direction: One of: current, front, back, bottom, top, left, right, iso-bottom-left/right, iso-top-left/right. Defaults to iso-top-right. width, height: Optional image dimensions in pixels. transparent: PNG transparency. Default True. anti_aliasing: Smooth edges. Default True.
Returns envelope.result = { before_image: {data: , mime_type: "image/png"}, after_image: {data: , mime_type: "image/png"}, before_marker, after_marker, direction }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| height | No | ||
| direction | No | iso-top-right | |
| transparent | No | ||
| anti_aliasing | No | ||
| before_marker_position | Yes |