360 Secure SkillHub
360 安全技能中心

terry-camsnap

通过 Bash 调用宿主工作区内的 camsnap 脚本,从默认摄像头拍摄一张快照并保存到磁盘;未指定输出路径时存到 ./snapshots/ 目录并以时间戳命名,支持 --preview 和 --output-dir 参数,脚本会丢弃预热帧并做路径穿越校验。

分类:自动化
terrycarter1985
terrycarter1985
热度 18.51
最近更新 2026-05-11 17:47:22

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add terrycarter1985/terry-camsnap
兼容性
OpenClaw 专属
联网要求
不联网
数据出网
数据不出本机
Metadata
name
camsnap
description
Take camera snapshots and save them to disk. Use when the user asks to take a photo, capture an image from webcam, or take a snapshot.
allowed-tools
Bash
argument-hint
[output_path] [--preview]

Take a snapshot from the default webcam using the camsnap utility.

Usage

/camsnap [output_path] [--preview] [--output-dir DIR]

If no output path is provided, the snapshot will be saved to the ./snapshots/ directory with a timestamp filename.

Steps

  1. Run the snapshot script:
python3 ~/.openclaw/workspace/src/camsnap.py {{ $ARGUMENTS }}
  1. Confirm the snapshot was saved successfully and return the file path.

Notes

  • The script discards the first few warm-up frames to avoid underexposed captures.
  • Output paths are validated against path-traversal; only allowed directories are writable.
  • Use --preview only in environments with a display (headless servers will fail).