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
- Run the snapshot script:
python3 ~/.openclaw/workspace/src/camsnap.py {{ $ARGUMENTS }}
- 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
--previewonly in environments with a display (headless servers will fail).