Peekaboo

From algal/sparky · View interactive version

Peekaboo is an AI agent skill from the GitHub repository algal/sparky. Capture and automate macOS UI with Peekaboo on the "arrow" node.

How to use this skill

Skill file

Peekaboo (via arrow)

Peekaboo runs on the macOS node "arrow" (Alexis's Mac). You are on Linux

and cannot run it locally.

Capturing the active window (most common use)

This is what you want when someone says "look at my screen," "what am I working

on," or "help me with this":

  1. Capture and encode in one step via system.run on node "arrow":

```

peekaboo image --mode frontmost --path /tmp/peekaboo-capture.png && base64 -i /tmp/peekaboo-capture.png

```

  1. The base64-encoded image data is returned in the command output. Decode and

analyze the image, then respond.

Prefer --mode frontmost over --mode screen — it captures only the focused

window, which is smaller and more relevant than the full widescreen display.

All commands use only system.run on node "arrow" (provided by the native Mac

app). No other node commands are needed.

Full CLI reference

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 --json/-j for scripting.

Core commands

Interaction commands

Common capture parameters

--window-title, --window-id

Common targeting parameters

Examples

Capture active window:

peekaboo image --mode frontmost --path /tmp/capture.png

Capture a specific app's window:

peekaboo image --app Safari --mode window --path /tmp/safari.png

Annotated UI map (for subsequent click targeting):

peekaboo see --app Safari --annotate --path /tmp/see.png

See -> click -> type flow:

peekaboo see --app Safari --annotate --path /tmp/see.png
peekaboo click --on B3 --app Safari
peekaboo type "search query" --app Safari --return

Open a URL:

open "https://example.com"

All commands run via system.run on node "arrow". To retrieve image results,

append && base64 -i <path> to the capture command.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.