360 Secure SkillHub
360 安全技能中心

节点

面向 macOS 的截图方案:先用 openclaw nodes screen record 录制 1 秒视频,再用 ffmpeg 抽取一帧保存为 PNG,以规避 screencapture 权限问题。需已配对的 OpenClaw 节点与屏幕录制权限,黑屏时提示唤醒屏幕后重试。

taozhe6
taozhe6
热度 20.24
最近更新 2026-09-22 02:57:10
分类:自动化依赖:代码执行 / 读写文件应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add mac-node-snapshot
Metadata
name
mac-node-snapshot
description
A robust, permission-friendly method to capture macOS screens via OpenClaw screen.record. Ideal for headless environments or ensuring capture reliability.

mac-node-snapshot

Overview

Uses node screen.record to record a 1-second clip and extract a high-quality PNG frame. This workflow bypasses common screencapture permission issues and ensures a reliable image return.

Quick start (single command, no scripts)

All paths are relative to {skill}.

mkdir -p "{skill}/tmp" \
&& openclaw nodes screen record --node "<node>" --duration 1000 --fps 10 --no-audio --out "{skill}/tmp/snap.mp4" \
&& ffmpeg -hide_banner -loglevel error -y -ss 00:00:00 -i "{skill}/tmp/snap.mp4" -frames:v 1 "{skill}/tmp/snap.png"

When to use (trigger phrases)

Use this skill when the user asks:

  • "Take a screenshot"
  • "What is on my screen?"
  • "Capture the screen"
  • "Screenshot via screen.record"

Notes

  • Requirements: ffmpeg (ask before installing).
  • If the frame is black, ask the user to wake the screen and retry.
  • Use read on {skill}/tmp/snap.png to attach it to the reply.

Troubleshooting

  • screen_record fails (node disconnected): check nodes status, ensure OpenClaw app is running/paired.
  • screenRecording false: must grant Screen Recording in System Settings; cannot be bypassed.
  • Black frame: screen may be asleep/locked; ask the user to wake and retry.