| name | jaw-screen-capture |
| description | Screen capture and camera snapshots using macOS built-in tools. Full screen, region, window, webcam, and video recording. Use as default when tool-specific capture (Figma, Playwright, CDP) is unavailable. Prefer cli-jaw browser screenshot for web pages. |
| metadata | {"openclaw":{"emoji":"📸","requires":null,"install":["[Truncated]"]}} |
Screen Capture (macOS)
Quick Start
screencapture -x ~/screenshot.png
screencapture -i ~/selection.png
screencapture -c
Commands
Full Screen
screencapture -x ~/screenshot.png
screencapture ~/screenshot.png
screencapture -T 3 ~/screenshot.png
Region / Window
screencapture -i ~/region.png
screencapture -iW ~/window.png
screencapture -R 0,0,1280,720 ~/region.png
Specific Application Window
screencapture -l$(osascript -e 'tell app "Google Chrome" to id of window 1') ~/chrome.png
screencapture -l$(osascript -e 'tell app "Safari" to id of window 1') ~/safari.png
screencapture -l$(osascript -e 'tell app "System Events" to id of first window of (first process whose frontmost is true)') ~/front.png
Clipboard
screencapture -c
screencapture -ic
Multiple Displays
screencapture ~/screen1.png ~/screen2.png
screencapture -D 1 ~/main.png
screencapture -D 2 ~/secondary.png
Video Recording
screencapture -v ~/recording.mov
screencapture -V 10 ~/recording.mov
Webcam Capture (requires imagesnap)
brew install imagesnap
imagesnap ~/camera.png
imagesnap -w 2 ~/camera.png
imagesnap -d "FaceTime HD Camera" ~/camera.png
imagesnap -l
Output Formats
screencapture -t png ~/screenshot.png
screencapture -t jpg ~/screenshot.jpg
screencapture -t pdf ~/screenshot.pdf
screencapture -t tiff ~/screenshot.tiff
Common Workflows
Capture Specific App State
osascript -e 'tell app "Finder" to activate'
sleep 0.5
screencapture -x ~/finder.png
Useful Flags
| Flag | Description |
|---|
-x | Silent (no shutter sound) |
-i | Interactive selection mode |
-c | Copy to clipboard |
-R x,y,w,h | Capture specific rectangle |
-T seconds | Delay before capture |
-t format | Output format (png/jpg/pdf/tiff) |
-l windowID | Capture specific window |
-D displayNum | Capture specific display |
-v | Record video |
-V seconds | Record video for N seconds |
Notes
- Screen Recording permission may be required (System Settings > Privacy > Screen Recording).
- For browser-specific screenshots, prefer
cli-jaw browser screenshot (captures via CDP).