跳到正文
TakoAPI
返回技能列表

screenshot-skill

由 sunrddd-a11y 提供

Coding Agents & IDEs
584下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Capture screenshots on Windows using mss and Pillow.

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

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

智能体
  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

输出

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

安装

clawhub install sunrddd-a11y/screenshot-skill

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接