openclaw-channel-screenshot-send
OpenClaw Channel Screenshot Send
Capture a screenshot, save it briefly to a temporary local file, send it through OpenClaw's official outbound media path for the current channel, then delete the temporary file.
This skill exists because reply attachments are not the same as channel outbound media. Reading an image file into the current reply may let the model see it, but it does not reliably deliver the image into the user's actual chat.
Use this skill when
- The user says things like “截个图发我”, “把屏幕发我”, “把当前屏幕发来”, “发我截图”, “上传这个屏幕到聊天里”, “screenshot and send”, “capture the screen and send it”, or “send it over”.
- The user wants the screenshot to appear in the current conversation itself, not just be visible to the model.
- The user is clearly asking for delivery into chat, even if they do not mention the channel, API, or media-send mechanism.
- You need the most reliable path for sending screenshots into chat.
Core rule
Always use this flow:
- Capture screenshot to a temporary file
- Send with
openclaw message send --channel <current-channel> --media <temp-file> - Delete the temporary file after send completes
Do not use this flow:
read <image>and then attach it to the reply
That path is for model-visible attachments, not reliable chat delivery.
Required inputs
Before sending, confirm or infer these values from the current conversation context:
- Current channel
- Current target ID for that channel
- Capture scope: default to full-screen unless the user asked for a window/selection
Recommended command pattern
Use the platform's screenshot tool to write to /tmp, then send via OpenClaw official media send.
TMP_IMG="/tmp/openclaw-channel-shot-$(date +%s).png"
cleanup() { rm -f "$TMP_IMG"; }
trap cleanup EXIT
/usr/sbin/screencapture -x "$TMP_IMG"
openclaw message send \
--channel '<current-channel>' \
--target '<current-target>' \
--media "$TMP_IMG" \
--message 'screenshot'
If the current host is not macOS, use the appropriate screenshot utility for that system.
Behavior notes
- A screenshot sent successfully from
/tmpstill counts as temporary disk write. It is not truly zero-disk. - If the user wants “do not save”, explain the practical truth: the official media API needs a file path, so the closest workable method is temporary file -> send -> delete.
- The key distinction is send method, not whether the image is temporary or permanent.
Reporting back to the user
After sending, briefly report:
- that you used the official OpenClaw media send path
- whether the command succeeded
- the returned message ID if available
- that the temporary file was deleted
Failure handling
If the send fails:
- Keep the explanation short and concrete
- Mention whether capture succeeded
- Mention whether cleanup succeeded
- Avoid claiming the user received anything unless the command actually returned success
Do not
- Do not claim that reading an image into the current reply means the user received it in chat
- Do not leave temp screenshot files around unless the user explicitly wants them preserved for debugging
- Do not overcomplicate the workflow with unnecessary file copies unless debugging requires it
More from yanyang1116/skills
english-evaluation
Respond in Chinese to user requests; when the user's message is fully in English (ignoring punctuation, digits, emojis, and whitespace), append a brief Chinese evaluation plus a 1-10 score.
22openclaw-channel-file-send
Send an existing local file to the current chat using OpenClaw's official media send API for the active channel. Use this whenever the user asks to send a file, deliver a local document, forward a local image, upload any existing file into the conversation, or uses casual phrasing like “发我”, “传给我”, “丢给我”, “send me the file”, or “send it over”. Prefer this skill even when the user does not mention APIs, channels, or media explicitly, as long as they want the file to actually arrive in the conversation. Do not use reply attachments or read-file attachments for this workflow.
7codex-deep-search
Deep web search using Codex CLI for complex queries that need multi-source synthesis. Use when web_search (Brave) returns insufficient results, when the user asks for in-depth research, comprehensive analysis, or says "deep search", "详细搜索", "帮我查一下", or when a topic needs following multiple links and cross-referencing sources.
6openclaw-private-skills-manager
>
4openclaw-codex-deep-search
Deep web search using Codex CLI for complex queries that need multi-source synthesis. Use when web_search (Brave) returns insufficient results, when the user asks for in-depth research, comprehensive analysis, or says "deep search", "详细搜索", "帮我查一下", or when a topic needs following multiple links and cross-referencing sources.
3channel-file-send
Send an existing local file to the current chat using OpenClaw's official media send API for the active channel. Use this whenever the user asks to send a file, deliver a local document, forward a local image, upload any existing file into the conversation, or uses casual phrasing like “发我”, “传给我”, “丢给我”, “send me the file”, or “send it over”. Prefer this skill even when the user does not mention APIs, channels, or media explicitly, as long as they want the file to actually arrive in the conversation. Do not use reply attachments or read-file attachments for this workflow.
2