← 返回
未分类 中文

Feishu Attachment Send

Reliable Feishu file sending workflow. Strongly prefer this skill whenever a Feishu user asks for a file, asks you to send or return a document, or whenever...
可靠的飞书文件发送工作流。强烈建议在飞书用户请求文件、要求发送或返回文档时优先使用此技能,或...
yujunyanyanya yujunyanyanya 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 346
下载
💾 0
安装
1
版本
#latest

概述

Feishu File Send

Use this skill whenever you need to send a file to a Feishu user, or when a Feishu user reports they did not receive an attachment.

Core rule

For Feishu, do not combine text and attachment in one outbound message when reliability matters.

Always use this sequence:

  1. Prepare the file in an allowed local path.
  2. Send a short text message first, if any explanation is needed.
  3. Send the attachment as a separate outbound message.

When this skill should trigger

Use it when the user asks you to:

  • send a file
  • return an edited document
  • deliver a generated Word, Excel, PDF, PPT, TXT, image, or similar attachment
  • test Feishu attachment sending
  • debug missing Feishu attachments
  • diagnose file delivery failures in Feishu

This skill is especially important in Feishu DMs, but the same pattern is also safer in Feishu groups.

Required workflow

1. Check the file path

Before sending, ensure the file lives under an allowed mediaLocalRoots directory.

Known-good path in most setups:

  • ~/.openclaw/workspace/ (the default workspace directory)

If a generated file is under /tmp/ or another temporary path, move or copy it into an allowed directory before sending, unless you already know that path is whitelisted in mediaLocalRoots.

2. Send text separately

If you need to say something like “here is the file” or explain what changed, send that as a plain text message first.

Keep it short.

3. Send the attachment separately

Send the file in its own message using the message tool with media set to the local file path.

Do not attach explanatory text to the same outbound file message.

What to avoid

Do not:

  • combine text and file in one Feishu outbound message when attachment visibility matters
  • assume /tmp/openclaw/ is safe to send from
  • use MEDIA: inline attachment rendering for Feishu when you need reliable file delivery, if you can directly use the message tool instead

Delivery pattern

Preferred pattern:

  1. message.send with text only
  2. message.send with media only
  3. After tool success, do not duplicate the same content again in chat

If you use message to deliver the user-visible reply, answer with NO_REPLY.

Failure diagnosis

If the recipient says they did not receive the file:

  1. Confirm whether plain text messages are arriving.
  2. Confirm whether the file was sent as a standalone attachment message.
  3. Confirm the file path is inside mediaLocalRoots.
  4. Retry by copying the file into ~/.openclaw/workspace/ (or another allowed directory) and re-sending.
  5. If needed, consult references/feishu-file-sending-notes.md.

Known validated file types

Validated in Feishu DM on 2026-04-16 when sent separately:

  • txt
  • docx
  • xlsx
  • pdf

You may still send other file types, but if reliability matters and they fail, debug using the same path and separation rules.

Reference

For the full tested behavior and troubleshooting notes, read:

  • references/feishu-file-sending-notes.md

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 21:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 461 📥 154,438
office-efficiency

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 277 📥 116,636
office-efficiency

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 384 📥 146,773