Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

screenshot-skill

bởi sunrddd-a11y

Coding Agents & IDEs
584Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Capture screenshots on Windows using mss and Pillow.

Mô tả

Kỹ năng này làm gì

Captures screenshots on Windows using mss and Pillow. Supports full-screen, region, and multi-monitor capture with output as a PIL Image, PNG file, or base64 string. Can be used as a Python module or CLI tool.

mss captures screens faster than most Python screenshot libraries, making it practical for high-frequency captures in desktop automation pipelines.

Khi nào nên dùng

  • Capturing screen state before and after desktop automation steps
  • Sending live screen content to GPT-4o for visual analysis
  • Saving a cropped screen region during UI testing
  • Auto-saving numbered screenshots at each step of a recorded workflow
  • Getting monitor resolution and layout info for multi-display setups

Quy trình ví dụ

ĐẦU VÀO

User asks: take a screenshot and tell me what's on my screen

AGENT
  1. 1

    Initialize ScreenCapture context manager

  2. 2

    Capture full screen and encode to base64 JPEG at quality 85

  3. 3

    Send base64 image to OpenAI GPT-4o vision API with a description prompt

  4. 4

    Return the model's text description of the screen content

ĐẦU RA

A text description of the current screen content generated by the vision model

Cài đặt

clawhub install sunrddd-a11y/screenshot-skill

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết