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:
- Upload image via
POST /open-apis/im/v1/images-> getimage_key - Send message with
msg_type: imageand the key
Important Notes
Use $TMPDIR not /tmp
- macOS temp directory:
/var/folders/.../T - OpenClaw file access restricts to
os.tmpdir()and workspace /tmpmay not be accessible
Use media parameter
- Pass file path directly to
mediaparameter - 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