sassy_screenshot
Capture a PNG screenshot of the current screen to verify the visible state before or after desktop automation actions. Returns the saved image path and pixel dimensions for use in further steps.
Instructions
Read-only with respect to the desktop; writes an image file. Saves a PNG screenshot of the screen and returns its path and pixel dimensions. path defaults to ~/sassymcp_screenshot.png; region is an 'x,y,w,h' string that takes precedence over monitor (a malformed region returns an explicit error instead of falling back to a full screenshot); monitor defaults to -1 (all monitors), 0 for primary, 1+ for others. The save path must pass validation and must not be a protected location. Use it to see the current screen state, especially before or after sassy_click/sassy_type_text; pair with sassy_screen_info for multi-monitor region math. Requires a GUI session; on headless hosts it returns an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| region | No | ||
| monitor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |