/h2t-core:snapfrom h2t-core
Desktop screenshot & interact utility for AI agents. Capture windows, click, type, hover in any desktop app. Use when agent needs visual feedback from native applications (not browsers). Triggers: 'snap', 'h2t:snap', 'h2t-snap', 'screenshot desktop', 'capture window', 'click in app', 'скриншот приложения', 'кликни в окне'.
Ships in h2t-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Eyes and hands for AI agents on the desktop. One binary, no dependencies.
h2t-snap must be installed. Check:
h2t-snap --version
If not found, build from source:
# macOS
git clone https://github.com/lichtpfad/h2t-snap && cd h2t-snap
swift build -c release
cp .build/release/h2t-snap /usr/local/bin/
# Windows — download h2t-snap.exe from GitHub Releases
macOS permissions: Screen Recording (for capture) + Accessibility (for click/type). Granted on first run via system dialog. Exit code 5 = permission denied.
The core loop: capture → decide → act → verify
h2t-snap list
h2t-snap list --filter "TouchDesigner"
Returns JSON array: [{"index":0, "window_id":12345, "title":"...", "owner":"...", "rect":[x,y,w,h]}]
h2t-snap capture --title "AppName" --json
Returns: {"path":"/tmp/h2t-snap/snap_20260331.png", "width":1920, "height":1080, "window":"AppName", "timestamp":"..."}
Then read the image with the Read tool to see it.
# Click (coordinates are window-relative, top-left = 0,0)
h2t-snap click --title "AppName" --x 450 --y 320
# Double click
h2t-snap dclick --title "AppName" --x 450 --y 320
# Right click
h2t-snap rclick --title "AppName" --x 450 --y 320
# Type text at position (clicks first, then types)
h2t-snap type --title "AppName" --x 300 --y 200 --text "hello"
# Hover
h2t-snap hover --title "AppName" --x 200 --y 100
# Modifier keys
h2t-snap click --title "AppName" --x 100 --y 100 --ctrl
h2t-snap click --title "AppName" --x 100 --y 100 --shift
h2t-snap capture --title "AppName" --json
# Read the new screenshot to confirm the action worked
h2t-snap click --title "AppName" --x 450 --y 320 --dry-run
Returns JSON with action, coordinates (window-relative + screen-absolute), window info — without clicking.
h2t-snap click --title "AppName" --x 450 --y 320 --safe-zone "0,50,800,600"
Exits with code 3 if click is outside the rectangle. Use to avoid titlebar, close buttons, etc.
Best practice: Calculate safe-zone from window rect: skip first ~30px (titlebar), restrict to content area.
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Window not found |
| 2 | Capture failed |
| 3 | Interact failed / safe-zone violation |
| 4 | Ambiguous title (multiple windows matched) |
| 5 | Permission denied (macOS) |
| macOS | Windows | |
|---|---|---|
| Window ID flag | --window-id | --hwnd |
| Cursor | CGEvent moves real cursor | PostMessage (background) |
| Permissions | Screen Recording + Accessibility | None |
| Binary | 2.3 MB (Swift) | 17 MB (PyInstaller) |
| Display flag | --display N | --monitor N |
list to find exact --window-idWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lichtpfad/h2t-skills --plugin h2t-core11 skills in this plugin
/agent-profileProject-scoped Claude plugin profile manager. Apply base profiles (dev, pos, ops, creative, dcc, product, marketing, mixed) and work contexts to control which plugins load per repo. Supports profile:name and overlay:name explicit refs plus bare-name legacy compat. Triggers: "agent-profile", "apply profile", "plugin profile", "set profile", "configure plugins", "профиль плагинов", "конфигуратор профиля".
/autonomous-runLaunch or resume an autonomous, unattended plan-execution run after brainstorm is complete. Generates a durable, self-contained runbook artifact, materializes a TodoWrite mirror of the pipeline, and carries the decision + gate protocols through to handoff. Use for "работай сам", "автономно", "overnight", "выполни план сам", "autonomous run", "resume runbook"./Other plugins' skills for the same job