The skill now uses POST /capture?display=2 instead of GET /screenshot, removing the need to manually take screenshots before fetching. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .gitignore | ||
| README.md | ||
| SKILL.md | ||
| com.inou.screenshot-server.plist | ||
| main.go | ||
README.md
Screenshot Server
Tiny HTTP server that serves the latest screenshot from ~/Desktop, then deletes it.
Build (on Mac)
cd /path/to/screenshot-server
go build -o screenshot-server
Install as service
# Copy binary
sudo cp screenshot-server /usr/local/bin/
# Install launchd service
cp com.inou.screenshot-server.plist ~/Library/LaunchAgents/
# Start it
launchctl load ~/Library/LaunchAgents/com.inou.screenshot-server.plist
# Check status
launchctl list | grep screenshot
Usage
Take a screenshot (Cmd+Shift+4), then:
curl http://192.168.1.14:9123/screenshot -o screenshot.png
Endpoints
GET /screenshot- Returns latest screenshot PNG, then deletes itGET /health- Returns "ok"
Uninstall
launchctl unload ~/Library/LaunchAgents/com.inou.screenshot-server.plist
rm ~/Library/LaunchAgents/com.inou.screenshot-server.plist
sudo rm /usr/local/bin/screenshot-server
Logs
tail -f /tmp/screenshot-server.log