peekaboo
Original:🇺🇸 English
Translated
Capture and automate macOS UI with the Peekaboo CLI.
11installs
Sourcesteipete/clawdis
Added on
NPX Install
npx skill4agent add steipete/clawdis peekabooTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Peekaboo
Peekaboo is a full macOS UI automation CLI: capture/inspect screens, target UI
elements, drive input, and manage apps/windows/menus. Commands share a snapshot
cache and support / for scripting. Run or
for flags; prints build metadata.
Tip: run via to ensure fresh builds.
--json-jpeekaboopeekaboo <cmd> --helppeekaboo --versionpolter peekabooFeatures (all CLI capabilities, excluding agent/MCP)
Core
- : inspect Peekaboo Bridge host connectivity
bridge - : live capture or video ingest + frame extraction
capture - : prune snapshot cache and temp files
clean - : init/show/edit/validate, providers, models, credentials
config - : capture screenshots (screen/window/menu bar regions)
image - : print the full agent guide + tool catalog
learn - : apps, windows, screens, menubar, permissions
list - : check Screen Recording/Accessibility status
permissions - : execute
runscripts.peekaboo.json - : pause execution for a duration
sleep - : list available tools with filtering/display options
tools
Interaction
- : target by ID/query/coords with smart waits
click - : drag & drop across elements/coords/Dock
drag - : modifier combos like
hotkeycmd,shift,t - : cursor positioning with optional smoothing
move - : set clipboard -> paste -> restore
paste - : special-key sequences with repeats
press - : directional scrolling (targeted + smooth)
scroll - : gesture-style drags between targets
swipe - : text + control keys (
type, delays)--clear
System
- : launch/quit/relaunch/hide/unhide/switch/list apps
app - : read/write clipboard (text/images/files)
clipboard - : click/input/file/dismiss/list system dialogs
dialog - : launch/right-click/hide/show/list Dock items
dock - : click/list application menus + menu extras
menu - : list/click status bar items
menubar - : enhanced
openwith app targeting + JSON payloadsopen - : list/switch/move-window (Spaces)
space - : exercise Peekaboo visual feedback animations
visualizer - : close/minimize/maximize/move/resize/focus/list
window
Vision
- : annotated UI maps, snapshot IDs, optional analysis
see
Global runtime flags
- /
--json,-j/--verbose,-v--log-level <level> - ,
--no-remote--bridge-socket <path>
Quickstart (happy path)
bash
peekaboo permissions
peekaboo list apps --json
peekaboo see --annotate --path /tmp/peekaboo-see.png
peekaboo click --on B1
peekaboo type "Hello" --returnCommon targeting parameters (most interaction commands)
- App/window: ,
--app,--pid,--window-title,--window-id--window-index - Snapshot targeting: (ID from
--snapshot; defaults to latest)see - Element/coords: /
--on(element ID),--id--coords x,y - Focus control: ,
--no-auto-focus,--space-switch,--bring-to-current-space,--focus-timeout-seconds--focus-retry-count
Common capture parameters
- Output: ,
--path,--format png|jpg--retina - Targeting: ,
--mode screen|window|frontmost,--screen-index,--window-title--window-id - Analysis: ,
--analyze "prompt"--annotate - Capture engine:
--capture-engine auto|classic|cg|modern|sckit
Common motion/typing parameters
- Timing: (drag/swipe),
--duration,--steps(type/scroll/press)--delay - Human-ish movement: ,
--profile human|linear(typing)--wpm - Scroll: ,
--direction up|down|left|right,--amount <ticks>--smooth
Examples
See -> click -> type (most reliable flow)
bash
peekaboo see --app Safari --window-title "Login" --annotate --path /tmp/see.png
peekaboo click --on B3 --app Safari
peekaboo type "user@example.com" --app Safari
peekaboo press tab --count 1 --app Safari
peekaboo type "supersecret" --app Safari --returnTarget by window id
bash
peekaboo list windows --app "Visual Studio Code" --json
peekaboo click --window-id 12345 --coords 120,160
peekaboo type "Hello from Peekaboo" --window-id 12345Capture screenshots + analyze
bash
peekaboo image --mode screen --screen-index 0 --retina --path /tmp/screen.png
peekaboo image --app Safari --window-title "Dashboard" --analyze "Summarize KPIs"
peekaboo see --mode screen --screen-index 0 --analyze "Summarize the dashboard"Live capture (motion-aware)
bash
peekaboo capture live --mode region --region 100,100,800,600 --duration 30 \
--active-fps 8 --idle-fps 2 --highlight-changes --path /tmp/captureApp + window management
bash
peekaboo app launch "Safari" --open https://example.com
peekaboo window focus --app Safari --window-title "Example"
peekaboo window set-bounds --app Safari --x 50 --y 50 --width 1200 --height 800
peekaboo app quit --app SafariMenus, menubar, dock
bash
peekaboo menu click --app Safari --item "New Window"
peekaboo menu click --app TextEdit --path "Format > Font > Show Fonts"
peekaboo menu click-extra --title "WiFi"
peekaboo dock launch Safari
peekaboo menubar list --jsonMouse + gesture input
bash
peekaboo move 500,300 --smooth
peekaboo drag --from B1 --to T2
peekaboo swipe --from-coords 100,500 --to-coords 100,200 --duration 800
peekaboo scroll --direction down --amount 6 --smoothKeyboard input
bash
peekaboo hotkey --keys "cmd,shift,t"
peekaboo press escape
peekaboo type "Line 1\nLine 2" --delay 10Notes
- Requires Screen Recording + Accessibility permissions.
- Use to identify targets before clicking.
peekaboo see --annotate