peekaboo
macOS screenshots, UI inspect, clicks, typing, app/window automation.
SKILL.mdskills_archive/peekaboo/SKILL.md
GitHubPeekaboo
macOS screen capture, UI inspection, GUI automation.
Binary
Prefer ~/bin/peekaboo (local release copy). Else peekaboo.
Check: ~/bin/peekaboo --version || peekaboo --version.
Safety
- Check permissions before capture/automation:
peekaboo permissions status --json. - Screenshot needs Screen Recording; clicks/typing/window control need Accessibility.
- Remote Macs: Screenshot may be blocked (missing Screen Recording) while clicks/typing work via Accessibility; continue with clicks or DOM automation when target knowable.
- Prefer
--jsonfor machine parsing,--no-remotefor local TCC testing. - No click/type/destructive automation unless user asked or target is controlled test.
Commands
PB="${PEEKABOO_BIN:-$HOME/bin/peekaboo}"
[ -x "$PB" ] || PB="$(command -v peekaboo)"
"$PB" permissions status --json
"$PB" list screens --json
"$PB" list apps --json
"$PB" list windows --app Safari --json
"$PB" image --mode screen --screen-index 0 --path /tmp/screen.png --json --no-remote
"$PB" see --app frontmost --path /tmp/frontmost.png --json --annotate
"$PB" tools --json
"$PB" learn
"$PB" click --coords 100,100 --json
"$PB" type "text" --json
Workflow
- Resolve
PB, confirm version when install state matters. permissions status --json; report exact missing TCC grants.- Screenshots:
imagewith--path,--json, usually--no-remote. - Element targeting:
see --json --annotate, click by element id/snapshot. - Long-running capture:
capture live; video frame sampling:capture video. - Discovery:
tools --json,learnfor full agent guide. - Verify output:
sips -g pixelWidth -g pixelHeight <path>or view image.
Documentation
Use the resolved binary's tools --json, learn, or <command> --help for installed capabilities and syntax.
Local checkout documentation is optional. Use its docs/commands/ directory only after locating and verifying that checkout; do not assume a machine-specific repository path.