screenshot
Take screenshots, screen recordings, scrolling captures, and OCR text recognition using CleanShot X. Use when user requests screenshots, captures, screen recording, OCR, text extraction, or image annotation.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
CleanShot X CLI
Use the cleanshot command to trigger CleanShot X actions.
Basic usage
cleanshot <subcommand> [flags]
Subcommands
Query commands
-
latest- Print path of most recent screenshot
Capture commands
-
all-in-one- Launch all-in-one capture tool -
capture-area- Area capture -
capture-fullscreen- Fullscreen capture -
capture-window- Window capture -
capture-previous-area- Repeat last screenshot -
self-timer- Self-timer capture -
scrolling-capture- Scrolling capture
Recording
-
record-screen- Screen recording
OCR
-
capture-text- OCR text recognition
Utility
-
pin- Pin image file -
open-annotate- Annotate image file -
open-from-clipboard- Annotate clipboard image -
toggle-desktop-icons- Toggle desktop icons visibility -
hide-desktop-icons- Hide desktop icons -
show-desktop-icons- Show desktop icons -
add-quick-access-overlay- Add quick access overlay -
open-history- Open capture history -
restore-recently-closed- Restore recently deleted -
open-settings- Open settings
Flags
Coordinate parameters
-
-x <int>- X coordinate (origin at lower left) -
-y <int>- Y coordinate -
-width <int>- Width in pixels -
-height <int>- Height in pixels -
-display <int>- Display number (1=main, 2=secondary, etc.)
Action parameters
-
-action <string>- Post-capture action:copy,save,annotate,upload,pin -
-filepath <path>- File path for pin/annotate/OCR -
-tab <string>- Settings tab:general,wallpaper,shortcuts,quickaccess,recording,screenshots,annotate,cloud,advanced,about -
-path <dir>- Screenshot directory (default:~/Downloads/screens)
Boolean flags
-
-start- Auto-start scrolling capture -
-autoscroll- Enable automatic scrolling -
-linebreaks- Preserve line breaks in OCR text
Examples
# Get latest screenshot
cleanshot latest
cleanshot latest -path ~/Pictures/screenshots
# Simple captures
cleanshot capture-area
cleanshot capture-fullscreen
# With coordinates
cleanshot capture-area -x 100 -y 120 -width 200 -height 150
# Save and print path
cleanshot capture-area -action save
cleanshot capture-fullscreen -action save -path ~/Pictures/screenshots
# Scrolling capture
cleanshot scrolling-capture -start -autoscroll
# Screen recording with region
cleanshot record-screen -x 0 -y 0 -width 1920 -height 1080 -display 1
# OCR
cleanshot capture-text -linebreaks
cleanshot capture-text -filepath ~/screenshot.png
# Annotate
cleanshot open-annotate -filepath ~/screenshot.png
cleanshot open-from-clipboard
# Settings
cleanshot open-settings -tab shortcuts
# Help
cleanshot help
Key features
- Automatically detects and prints screenshot path when using
-action save - Default screenshot directory:
~/Downloads/screens - Boolean flags don't require values
- Waits up to 10 seconds for screenshot to appear
Usage examples
When user requests:
- "what's my latest screenshot" →
cleanshot latest - "get the most recent screenshot path" →
cleanshot latest - "take a screenshot" →
cleanshot capture-areaorcleanshot capture-fullscreen - "save a screenshot" →
cleanshot capture-area -action save - "record my screen" →
cleanshot record-screen - "extract text from image" →
cleanshot capture-text -filepath <path> - "annotate this image" →
cleanshot open-annotate -filepath <path> - "hide desktop icons" →
cleanshot hide-desktop-icons - "scrolling screenshot" →
cleanshot scrolling-capture - "capture this specific region" → use coordinate parameters
Always confirm which capture type the user wants if ambiguous.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!