screenshot

Capture desktop, window, and region screenshots across macOS, Linux, and Windows.

Updated Jun 28, 2026
One-click install
npx skills add https://github.com/jason23452/my-skill --skill screenshot-jason23452
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: screenshot
Source: https://github.com/jason23452/my-skill/tree/main/flow/screenshot
Command: npx skills add https://github.com/jason23452/my-skill --skill screenshot-jason23452

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Taking screenshots from an AI agent or terminal requires different OS-specific commands, permission handling, and output path rules. This Skill provides unified helper scripts that capture full screens, specific app windows, or pixel regions and save them to the right location without manual command lookup. ## Core Features & Use Cases - Cross-platform capture: Python helper for macOS and Linux, PowerShell helper for Windows, with automatic fallback to tools like scrot, gnome-screenshot, or ImageMagick. - Targeted capture modes: Full screen (per-display on macOS), specific app or window by name or id, active window, pixel regions, and interactive selection. - macOS permission preflight: A bundled script checks and requests Screen Recording permission once, reducing repeated system prompts. - Use Case: Ask the agent to inspect a running desktop app; it captures the app's windows to the temp directory, prints each saved path, and views the images for visual verification against a design. ## Quick Start Take a screenshot of the currently active window and save it to the temp directory so you can look at it.

Frequently Asked Questions about screenshot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I take a screenshot of a specific app window on macOS from the terminal?▼

Run the take_screenshot.py helper with the --app flag followed by the application name, which captures all matching on-screen windows. Use --list-windows first to discover window ids, then --window-id for a precise single-window capture.

How to capture a specific screen region using command line tools?▼

Pass a region as x,y,w,h pixel coordinates, for example --region 100,200,800,600. On macOS it maps to screencapture -R, on Linux it uses scrot -a or ImageMagick import with crop geometry, and on Windows the PowerShell script accepts -Region.

Why does macOS screen capture fail with permission or sandbox errors?▼

macOS requires Screen Recording permission before any capture works. Run the ensure_macos_permissions.sh preflight script once to request it, and if you see sandbox or Swift ModuleCache errors, rerun the command with escalated permissions.

Which Linux screenshot tools does the helper support?▼

The helper automatically selects the first available tool in this order: scrot, gnome-screenshot, then ImageMagick import. Region captures require scrot or ImageMagick, and active-window capture can also use import combined with xdotool.

Can I capture screenshots on Windows with this approach?▼

Yes, Windows capture is handled by the take_screenshot.ps1 PowerShell script rather than the Python helper. It supports default, temp, and explicit output paths plus region, active-window, and window-handle modes using System.Drawing.

When should I use OS-level capture instead of browser or app-specific tools?▼

Prefer tool-specific capture such as Playwright for browsers or a Figma integration for design files when available. Use OS-level capture for whole-desktop screenshots, desktop apps without integrated tooling, or when tool-specific capture cannot reach the target.