WSL Screenshot
Capture screenshots from WSL using Windows PowerShell.
Usage
Take a Screenshot
# Run the screenshot script
~/.openclaw/workspace/skills/wsl-screenshot/scripts/screenshot.sh
# Output: C:\Users\97027\Pictures\wsl_screenshot_YYYYMMDD_HHMMSS.png
Send Screenshot to User
After taking a screenshot, send it via message:
# Get the latest screenshot path
LATEST=$(ls -t /mnt/c/Users/97027/Pictures/wsl_screenshot_*.png | head -1)
# Send via message tool
message action=send media="$LATEST" caption="📸 Screenshot"
Or use direct path:
message action=send media="/mnt/c/Users/97027/Pictures/wsl_screenshot_YYYYMMDD_HHMMSS.png"
Requirements
- WSL2 with Windows 10/11
- PowerShell available at
/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
Resources
scripts/screenshot.sh- Screenshot script