AivoClaw feishu-screenshot

install
source · Clone the upstream repo
git clone https://github.com/yuanyuekejiJN/AivoClaw
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/yuanyuekejiJN/AivoClaw "$T" && mkdir -p ~/.claude/skills && cp -r "$T/extraSkills/feishu-screenshot" ~/.claude/skills/yuanyuekejijn-aivoclaw-feishu-screenshot && rm -rf "$T"
manifest: extraSkills/feishu-screenshot/SKILL.md
source content

Feishu Screenshot

Capture macOS screenshots and send to Feishu conversations.

Quick Start

# 1. Capture screenshot to temp directory
screencapture -x "$TMPDIR/screenshot.png"

# 2. Send to Feishu
# Use message tool with media parameter

Sending Images to Feishu

Use the

message
tool with
media
parameter (NOT base64):

message(action=send, media="/path/to/image.png", channel="feishu")

Or reply to current conversation (auto-inferred target):

message(action=send, media="/path/to/image.png")

OpenClaw handles:

  1. Upload image via
    POST /open-apis/im/v1/images
    -> get
    image_key
  2. Send message with
    msg_type: image
    and the key

Important Notes

Use

$TMPDIR
not
/tmp

  • macOS temp directory:
    /var/folders/.../T
  • OpenClaw file access restricts to
    os.tmpdir()
    and workspace
  • /tmp
    may not be accessible

Use

media
parameter

  • Pass file path directly to
    media
    parameter
  • Do NOT use
    buffer
    (base64) parameter
  • Let OpenClaw handle the upload flow

Full Example

Taking a screenshot and sending to Feishu:

# Capture
SCREENSHOT_PATH="$TMPDIR/screenshot_$(date +%s).png"
screencapture -x "$SCREENSHOT_PATH"

Then use message tool:

message(
  action=send,
  media="$SCREENSHOT_PATH",
  channel="feishu"
)

Resources

scripts/

  • screenshot_and_send.sh
    - Example script combining capture + send