openclaw - 💡(How to fix) Fix feishu: add IM file upload tool for sending local files

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Cron jobs generate PDF reports and need to push them directly as files to user Feishu DMs. Currently requires workaround with doc attachments or drive links.

RAW_BUFFERClick to expand / collapse

Problem

feishu_im_user_message supports msg_type: "file", but the content JSON {"file_key":"xxx"} requires a file_key from Feishu IM upload API POST /open-apis/im/v1/files.

Currently no tool exposes this endpoint:

  • feishu_drive_file.upload → drive file_key (not usable for IM messages)
  • feishu_doc_media.insert → doc file_token (not usable for IM messages)

Result: cannot send local files to Feishu chat via feishu_im_user_message.

Proposed Solution

New tool feishu_im_file with action upload, calling POST /open-apis/im/v1/files, accepting file_path (local path), returning file_key.

Flow:

  1. feishu_im_file.upload → get file_key
  2. feishu_im_user_message.send with {"file_key":"xxx"} → file in chat

Use Case

Cron jobs generate PDF reports and need to push them directly as files to user Feishu DMs. Currently requires workaround with doc attachments or drive links.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix feishu: add IM file upload tool for sending local files