Use Screenshot
Trigger
When the user asks to check the latest screenshot, clipboard image, or a recent downloaded image.
Usage
- •Repo:
node skills/use-screenshot/scripts/screenshot-agent.js - •Downloads:
node skills/use-screenshot/scripts/screenshot-agent.js --downloads - •Clipboard only:
node skills/use-screenshot/scripts/screenshot-agent.js --clipboard-only - •Output is two lines:
- •source (
clipboardor original file path) - •temp file path (PNG/JPG/JPEG)
- •source (
Agent pattern
bash
out="$(node skills/use-screenshot/scripts/screenshot-agent.js)" tmp="$(printf "%s\n" "$out" | sed -n '2p')"
If tmp is empty, treat as not found.
Notes
- •Desktop files are copied to temp then trashed.
- •Downloads files are moved to temp (not trashed).
- •Clipboard has no copy timestamp; the tool prefers a file modified within ~30s, otherwise clipboard.
- •Linux: requires wl-clipboard or xclip for clipboard images.