跳到正文
TakoAPI
返回技能列表

mac-node-snapshot

由 taozhe6 提供

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

简介

A robust, permission-friendly method to capture macOS screens via OpenClaw screen.record.

描述

该技能的功能

Captures macOS screenshots by recording a 1-second clip via OpenClaw's screen.record node, then extracting a PNG frame with ffmpeg. Works in headless environments where standard screencapture commands often fail due to permission restrictions.

Routes through the screen.record node instead of screencapture, avoiding the permission errors that block standard screenshot tools in headless or automated contexts.

何时使用

  • Answering 'what's on my screen?' questions
  • Capturing UI state during manual testing
  • Attaching a screenshot to a bug report
  • Documenting current screen contents in a remote session
  • Debugging visual layout without leaving the terminal

示例工作流

输入

User asks: Take a screenshot of my screen

智能体
  1. 1

    Creates a tmp directory inside the skill folder

  2. 2

    Records a 1-second clip using openclaw nodes screen record with no audio

  3. 3

    Extracts the first video frame as a PNG using ffmpeg

  4. 4

    Reads the PNG file and attaches it to the reply

输出

A PNG screenshot of the current screen attached to the agent's response

前置要求

  • ffmpeg installed on the system
  • Screen Recording permission granted in macOS System Settings > Privacy & Security

安装

clawhub install taozhe6/mac-node-snapshot

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

链接