Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
飞书媒体文件发送技能。适用于:发送文件、图片、URL图片、视频、音频、语音消息,以及打包压缩后发送。当用户要求在飞书中发送任何类型的媒体文件时激活此技能。
飞书媒体文件发送技能。适用于:发送文件、图片、URL图片、视频、音频、语音消息,以及打包压缩后发送。当用户要求在飞书中发送任何类型的媒体文件时激活此技能。
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
通过 message 工具向飞书发送各类媒体文件。
所有媒体发送都通过 message 工具的 action=send,关键参数: channel: feishu target: chat:群ID 或 user:open_id(省略则回复当前会话) message: 附带的文字说明(可选) filePath: 本地文件路径 media: URL 地址(网络图片/文件)
message action=send channel=feishu filePath=/path/to/file.pdf message="文件说明" 支持格式:pdf, doc/docx, xls/xlsx, ppt/pptx, txt, csv, zip, tar.gz 等。
message action=send channel=feishu filePath=/path/to/image.png message="图片说明" 支持格式:jpg, jpeg, png, gif, webp, bmp。
message action=send channel=feishu media=https://example.com/image.png message="网络图片"
message action=send channel=feishu filePath=/path/to/video.mp4 message="视频说明" 视频以文件附件形式发送(飞书 msg_type: file)。支持 mp4, mov, avi。
MP3 等音频文件作为普通文件发送: message action=send channel=feishu filePath=/path/to/audio.mp3 message="音频文件"
语音消息需要 Ogg/Opus 格式。飞书会显示为可播放的语音条。
message action=send channel=feishu filePath=/path/to/voice.opus message="语音消息"
先用 ffmpeg 转换格式: ffmpeg -i input.mp3 -ar 16000 -ac 1 -acodec libopus output.ogg -y 然后发送 output.ogg。
语音消息的底层流程: 上传:im.file.create,file_type: "opus",需带 duration(毫秒) 发送:msg_type: "audio",content: {"file_key":"xxx","duration":3007} duration 由 ffprobe 自动获取,无需手动指定
当需要发送多个文件或不支持的格式时,先打包再发送:
zip -j /tmp/archive.zip /path/to/file1 /path/to/file2
tar czf /tmp/archive.tar.gz -C /path/to/dir .
message action=send channel=feishu filePath=/tmp/archive.zip message="打包文件"
类型格式发送方式飞书显示图片jpg/png/gif/webpfilePath 或 media(URL)内嵌图片文档pdf/doc/xls/pptfilePath文件卡片视频mp4/mov/avifilePath文件卡片音频mp3/wav/flacfilePath文件卡片语音opus/oggfilePath可播放语音条压缩包zip/tar.gzfilePath文件卡片网络图片URLmedia内嵌图片
文件大小限制:默认 30MB 语音必须是 Ogg/Opus 格式才能显示为语音条,其他音频格式只能作为文件发送 需要 ffmpeg/ffprobe 支持语音格式转换和时长检测 飞书应用需要 im:message、im:resource 权限
Messaging, meetings, inboxes, CRM, and teammate communication surfaces.
Largest current source with strong distribution and engagement signals.