openclaw-channel-file-send
OpenClaw Channel File Send
Send an existing local file into the current chat through OpenClaw's official outbound media send path.
This skill is for files that already exist, such as:
- images
package.json- markdown files
- text files
- project artifacts
- documents the user points to by path or location
Use this skill when
- The user says “把这个文件发给我”, “send this file”, “把桌面那个图发我”, “把 package.json 发给我”, “发我”, “传给我”, “丢给我”, “send me the file”, or similar.
- The file already exists locally.
- The user wants the file to appear in the current chat itself, not just be attached to the assistant turn.
- The user is clearly asking for delivery into chat, even if they do not mention the channel, API, or media-send mechanism.
Core rule
Always use OpenClaw's official media send command:
openclaw message send \
--channel '<current-channel>' \
--target '<current-target>' \
--media '<local-file-path>' \
--message '<optional short caption>'
Do not use:
read <file>and attach it to the current reply- model-visible attachments as a substitute for actual channel delivery
Those may attach content to the assistant turn, but they are not the reliable path for actual file delivery into chat.
What this skill is for
Use this skill for existing files.
Examples:
- send a Desktop screenshot file
- send a file from
Documents - send a project
package.json - send a generated report from the workspace
If the user asks you to first create or capture a file, do that upstream, then call this skill once you have a concrete file path.
Inputs to confirm or infer
Before sending, confirm or infer:
- the current channel
- the current target ID for that channel
- the file path to send
- whether a short caption is useful
If the user refers vaguely to “that file”, resolve the path first instead of guessing.
Proven behavior pattern
The key practical conclusion is:
the main constraint is send method, not ordinary local path location.
So prefer the official openclaw message send ... --media route over reply attachments.
Workflow
- Resolve the exact local file path
- Verify the file exists if needed
- Send it via
openclaw message send --channel <current-channel> --media <path> - Report success or failure briefly
Example command pattern
openclaw message send \
--channel '<current-channel>' \
--target '<current-target>' \
--media '/absolute/path/to/file' \
--message 'optional caption'
Reporting back to the user
After sending, briefly say:
- what file you sent
- that you used the official OpenClaw media send path
- whether the command succeeded
- the returned message ID if available
Failure handling
If sending fails:
- Say exactly which path you attempted
- Say whether the file existed
- Include the relevant command error briefly
- Do not imply the user received the file unless the command returned success
Do not
- Do not use
readattachment flow as a substitute for actual chat send - Do not claim that a model-visible attachment means the file arrived in chat
- Do not move or copy the file unless there is a specific reason to do so
- Do not overfit the skill to a single channel if the same official media-send pattern applies elsewhere
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.
22codex-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-channel-screenshot-send
Capture a fresh screenshot and send it into the current chat using OpenClaw's official media send API for the active channel. Use this whenever the user asks to screenshot the screen and send it, capture then send, send the current screen, send a screenshot here, upload the screen into chat, or uses casual phrasing like “发我截图”, “把屏幕发来”, “send it over”, or “丢到聊天里”. Prefer this skill even when the user does not mention APIs, channels, or media explicitly, as long as they want the screenshot to actually arrive in the conversation. Do not use read-image reply attachments for this workflow.
4openclaw-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