openclaw - 💡(How to fix) Fix [Feature Request] Add weixin_fetch_resource tool for downloading WeChat files [1 comments, 2 participants]

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…
GitHub stats
openclaw/openclaw#81309Fetched 2026-05-14 03:33:32
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
2
Author
Timeline (top)
closed ×1commented ×1

Root Cause

However, AI agents cannot access these files because there is no equivalent tool to <code>feishu_im_user_fetch_resource</code> for WeChat.

Fix Action

Fix / Workaround

Additional Context

Currently, the workaround is to ask users to send files via Feishu instead, which supports <code>feishu_im_user_fetch_resource</code>. This is not ideal for users who primarily use WeChat.

RAW_BUFFERClick to expand / collapse

Feature Request: WeChat File Download Tool

Problem Statement

Currently, the OpenClaw WeChat plugin (<code>openclaw-weixin</code>) supports receiving file messages, but there is no tool available for AI agents to actively download files from WeChat messages.

When a user sends a file via WeChat, the plugin downloads it to: <code>/tmp/openclaw/weixin/media/inbound/</code>

However, AI agents cannot access these files because there is no equivalent tool to <code>feishu_im_user_fetch_resource</code> for WeChat.

Current Behavior

  • File messages are received and auto-downloaded by the plugin
  • The file path is passed via <code>MediaPath</code> in the message context
  • AI agents have no tool to fetch the file content

Expected Behavior

A new tool <code>weixin_fetch_resource</code> (or similar) that allows AI agents to:

  1. Download files from WeChat messages using <code>message_id</code> and <code>file_key</code>
  2. Access the decrypted file content (images, documents, audio, video)
  3. Save files to a specified local path

Use Case

As an AI assistant running in OpenClaw, I want to:

  1. Receive a document from a user via WeChat
  2. Use a tool to download the file: <code>weixin_fetch_resource --message_id xxx --file_key xxx --type file --output /path/to/file</code>
  3. Read and process the file content
  4. Respond to the user with analysis/results

Similar Tools (Reference)

  • <code>feishu_im_user_fetch_resource</code> - For Feishu/Lark messages
  • <code>feishu_im_bot_image</code> - For bot-received images

Technical Notes

The WeChat plugin already has file download capability in: <code>src/media/media-download.ts</code>

This functionality needs to be exposed as a tool for AI agents.

Environment

  • OpenClaw version: latest
  • Plugin: openclaw-weixin
  • Channel: openclaw-weixin

Additional Context

Currently, the workaround is to ask users to send files via Feishu instead, which supports <code>feishu_im_user_fetch_resource</code>. This is not ideal for users who primarily use WeChat.


Thank you for considering this feature request! 🦞

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 [Feature Request] Add weixin_fetch_resource tool for downloading WeChat files [1 comments, 2 participants]