Install
$ agentstack add skill-graysurf-agent-kit-screenshot ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Screenshot
Capture screenshots through screen-record (macOS/Linux) and optional desktop capture via screencapture on macOS.
Contract
Prereqs:
screen-recordavailable onPATH(install viabrew install nils-cli).agent-outavailable onPATHfor canonical default artifact directories (also fromnils-cli).- macOS: Screen Recording permission granted (use
screen-record --preflight/--request-permission). - Linux: follow
screen-recordruntime prerequisites (X11 selectors or Wayland--portal, plus required dependencies). screencapture(built-in on macOS) only when using--desktop.bashforscripts/screenshot.sh(wrapper).
Inputs:
scripts/screenshot.shis a wrapper aroundscreen-record;--desktopusesscreencapture.- Mode selection:
- Default: screenshot mode (wrapper adds
--screenshotunless a pass-through mode is present). - Desktop helper:
--desktopcaptures the main display viascreencapture(macOS only). - Discovery:
--list-windows/--list-apps/--list-displays. - Permissions:
--preflight/--request-permission. - Version:
--version/-Vpass through toscreen-record. - Screenshot selectors (choose one):
--portal, or--window-id, or--active-window, or--app(optional--window-namewith--app).- Screenshot output args:
--path(recommended), or--dir(used when--pathis omitted), plus optional--image-format png|jpg|webp.
Outputs:
- Screenshot success: stdout prints only the resolved output image path (one line).
- List success: stdout prints only UTF-8 TSV rows (no header), one per line.
- Preflight/request success: stdout is empty; any user messaging goes to stderr.
- Errors: stdout is empty; stderr contains user-facing errors (no stack traces).
Exit codes:
0: success1: runtime failure or missing dependency2: usage error (invalid flags/ambiguous selection/unsupported platform)
Failure modes:
screen-recordmissing onPATH.- Screen Recording permission missing/denied (macOS).
- Linux X11 selectors/list modes used without
DISPLAY(use--portalon Wayland-only sessions). screen-recordruntime dependencies missing (for example: portal backend on Wayland-only sessions).- Ambiguous
--app/--window-nameselection (no single match). - Invalid flag combinations.
--desktopused on non-macOS.--desktoponly supports--image-format png|jpg.
Scripts (only entrypoints)
$AGENT_HOME/skills/tools/media/screenshot/scripts/screenshot.sh
Usage
- Resolve a canonical project artifact directory:
artifact_dir="$(agent-out project --topic screenshot --mkdir)"
- Screenshot active window:
$AGENT_HOME/skills/tools/media/screenshot/scripts/screenshot.sh --active-window --path "$artifact_dir/active-window.png"
- Screenshot via portal picker (Linux Wayland):
$AGENT_HOME/skills/tools/media/screenshot/scripts/screenshot.sh --portal --path "$artifact_dir/portal.png"
- Screenshot the desktop (main display helper, macOS only):
$AGENT_HOME/skills/tools/media/screenshot/scripts/screenshot.sh --desktop --path "$artifact_dir/desktop.png"
- List windows to find a
--window-id:
$AGENT_HOME/skills/tools/media/screenshot/scripts/screenshot.sh --list-windows
- List displays (pass-through to
screen-record):
$AGENT_HOME/skills/tools/media/screenshot/scripts/screenshot.sh --list-displays
- Screenshot by app/window title:
$AGENT_HOME/skills/tools/media/screenshot/scripts/screenshot.sh --app "Terminal" --window-name "Docs" --path "$artifact_dir/terminal-docs.png"
- Permission preflight / request (if blocked):
screen-record --preflight
screen-record --request-permission
Notes
- Prefer
agent-out project --topic screenshot --mkdirfor ad hoc screenshot paths so outputs are grouped by project/run. - For non-window video capture, use
screen-record --display/--display-id(recording mode).
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: graysurf
- Source: graysurf/agent-kit
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.