Token导航 LogoToken导航TokenDH.com
效率操作浏览器clawhub未标认证来源可访问clear审计提醒

wechat-sendmedia微信发送媒体

Agent Skill

wechat-sendmedia 用于处理图像、截图、视觉识别或图片素材相关工作,适合在 OpenClaw 中需要让 Agent 分析图片、整理视觉素材或辅助图像流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,003

周安装

129

GitHub Stars

公开资料未说明

下载量

1,053
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wechat-sendmedia(微信发送媒体)
来源仓库:https://github.com/torry21th/wechat-sendmedia
安装命令:
openclaw skills install wechat-sendmedia
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install wechat-sendmedia

简介

wechat-sendmedia 通过 OpenClaw 微信通道发送本地图像和文件到对话中。

  • 适用于 OpenClaw 中需要快速分享素材或截图的协作场景。
  • 支持拖拽文件和屏幕截图上传,自动转换格式适配微信。
  • 安装命令为 openclaw skills install wechat-sendmedia,需启用微信频道权限。
  • 文件大小和类型受微信限制,建议提前压缩或裁剪。

SKILL.md

name
wechat-sendmedia
description
send images and files to a wechat conversation through openclaw's wechat channel. use when the user asks to send a local image, send a screenshot, send a downloaded file, or send any media/file back to the current wechat chat or an optional recipient. optimized for openclaw builds where the gateway parses MEDIA:file:// tokens from plain text instead of json media envelopes.

Wechat Sendmedia

Use this skill only for the openclaw-weixin channel.

Core rule

For outbound media, prefer the plain-text MEDIA token format, not a JSON envelope.

Return the final assistant message as plain text like this:

发送成功
- 类型:图片 | 文件
- 路径:<absolute path>
- 接收人:当前会话 | <recipient>

MEDIA:file:///absolute/path/to/file.png

Why: newer OpenClaw gateway builds parse media only from text directives such as MEDIA:file:///.... If you return JSON like { "mediaUrl": "file:///..." }, the gateway may forward that JSON as plain text and no image/file will be delivered.

Never do this

Do not rely on these formats as the primary output:

{
  "text": "这是你要的图片",
  "mediaUrl": "file:///tmp/x.png"
}

or:

{
  "text": "...",
  "mediaUrl": "MEDIA:file:///tmp/x.png"
}

These may be displayed to the user as literal text.

Supported tasks

Handle these tasks:

  • Send a local image file to WeChat.
  • Take a browser or desktop screenshot, then send it.
  • Send a non-image file such as a PDF, text file, archive, or document.
  • Send to the current conversation by default.
  • Send to a specific recipient only if the user explicitly provides one.
  • Return 发送成功 or 发送失败 plus actionable diagnostics.

Inputs

Interpret the request into:

  • file_path: absolute local path to an existing file, or a screenshot path produced earlier.
  • recipient: optional. Default 当前会话.
  • caption: optional short note for the human-readable confirmation text.
  • source_kind: image or file.

If the user asks for a screenshot first, obtain the screenshot file before sending.

Output contract

Success outcome

Return plain text only:

发送成功
- 类型:图片
- 路径:/tmp/browser-shot.png
- 接收人:当前会话

MEDIA:file:///tmp/browser-shot.png

Rules:

  • The MEDIA:file://... directive must be on its own line.
  • Use an absolute local path.
  • Use 图片 for common image types and 文件 for everything else.
  • Keep the confirmation short.
  • Do not wrap the final reply in JSON unless the host explicitly requires JSON. For current OpenClaw builds, plain text is the safe default.

Failure outcome

Return:

发送失败
- 可能原因:<one line summary>
- 建议:<next step>

调试信息:
- file_path: <path>
- exists: true|false
- recipient: <recipient>
- upload_url: <value or n/a>
- upload_url_host: <value or n/a>
- encrypted_param_length: <number or 0>
- sendmessage_status: <value or n/a>
- sendmessage_response: <raw text or n/a>
- context_token_present: true|false
- media_type_guess: image|file|unknown

Workflow

  1. Resolve the user's intent.
  2. Ensure the target file exists.
  3. Run scripts/emit_media_reply.py to validate the file and build the plain-text reply payload.
  4. Return the script's reply_text value as the assistant message.
  5. If a send attempt fails or the user reports a failed send, run scripts/weixin_debug_send.js to produce targeted diagnostics.
  6. Summarize the result in Chinese.

File-type decision rules

Treat these as images by default:

  • .png, .jpg, .jpeg, .gif, .webp, .bmp

Treat everything else as files.

Recipient rules

  • If the user says 发给我 and the current task came from WeChat, use 当前会话.
  • Only override the recipient if the user explicitly names another receiver.
  • If a concrete user id is unavailable, keep recipient as 当前会话 in the confirmation text and let the host runtime map it to the current chat.

Troubleshooting rules

When debugging an OpenClaw WeChat media failure, prefer concrete evidence over guesses.

Common causes to mention only when supported by the debug output:

  • File path does not exist.
  • Host runtime treated the reply as plain text because no MEDIA: token was present.
  • Missing context token for the current chat.
  • Upload URL not returned.
  • x-encrypted-param missing or unexpectedly short.
  • sendmessage returned empty body or non-success JSON.
  • Token/session mismatch between runtime state and on-disk account data.
  • Wrong route used: JSON envelope or slash command text instead of MEDIA:file://....

Examples

Example: screenshot request

Final reply:

发送成功
- 类型:图片
- 路径:/tmp/browser-shot.png
- 接收人:当前会话

MEDIA:file:///tmp/browser-shot.png

Example: document request

Final reply:

发送成功
- 类型:文件
- 路径:/Users/example/Desktop/report.pdf
- 接收人:当前会话

MEDIA:file:///Users/example/Desktop/report.pdf

Resources

  • Use scripts/emit_media_reply.py to validate a path and build reply_text.
  • Use scripts/weixin_debug_send.js to collect failure diagnostics.
  • See references/openclaw-weixin-notes.md for compatibility notes.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.3%
按下载量换算824

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills