scout_capture
Captures a PNG of one element with its bounds and margin from a live screenshot, saving it under .scenescout/captures/ so people can see how that element looks.
Instructions
Save a PNG of ONE element — its bounds plus a margin, from a real screenshot — under .scenescout/captures/, to show a person how it looks. Give the element's ref from the latest scout_snapshot. Not a way to judge design: scout_design_audit measures it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Instead of a ref: the element's key from an earlier scout_capture result, to capture the same element on another deployment | |
| ref | No | The element's ref from the latest scout_snapshot | |
| name | No | The file's name: letters, digits and dashes. Default: capture | |
| margin | No | CSS pixels kept around the element. Default 8 | |
| session | No | Target this session directly instead of the active one — pass it explicitly when dispatching to MULTIPLE sessions in one turn (e.g. two scout_click calls with different `session`), which then run CONCURRENTLY rather than queueing. Omit for single-session sequential use. |