use-screenshot
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUse Screenshot
使用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 (or original file path)
clipboard - temp file path (PNG/JPG/JPEG)
- source (
- 仓库路径:
node skills/use-screenshot/scripts/screenshot-agent.js - 下载文件夹:
node skills/use-screenshot/scripts/screenshot-agent.js --downloads - 仅剪贴板:
node skills/use-screenshot/scripts/screenshot-agent.js --clipboard-only - 输出为两行:
- 来源(或原始文件路径)
clipboard - 临时文件路径(PNG/JPG/JPEG)
- 来源(
Agent pattern
Agent模式
bash
out="$(node skills/use-screenshot/scripts/screenshot-agent.js)"
tmp="$(printf "%s\n" "$out" | sed -n '2p')"If is empty, treat as not found.
tmpbash
out="$(node skills/use-screenshot/scripts/screenshot-agent.js)"
tmp="$(printf "%s\n" "$out" | sed -n '2p')"如果为空,则视为未找到。
tmpNotes
注意事项
- 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.
- 桌面文件会被复制到临时文件夹后放入回收站。
- 下载文件夹中的文件会被移动到临时文件夹(不会放入回收站)。
- 剪贴板没有复制时间戳;工具优先选择最近约30秒内修改的文件,否则使用剪贴板内容。
- Linux系统:需要wl-clipboard或xclip来处理剪贴板图片。