Send a WeChat message
wechat_sendSend WeChat messages with text and attachments to a recipient ID. Supports local files and remote URLs for images, videos, and other files.
Instructions
Send a WeChat message to a user. Provide to (the recipient WeChat id, e.g. 'xxxx@im.wechat'), and text and/or media. media may be a local file path (absolute recommended) or a remote http(s) URL — images, videos, and other files are auto-detected by extension. If multiple accounts are logged in, pass accountId. The per-recipient context token (cached from inbound messages) is attached automatically when available. Outbound text is markdown-filtered by default (WeChat-unsupported syntax such as H5/H6 headings, CJK italics, and inline images is stripped; code blocks, tables, and bold are kept).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient WeChat id, e.g. 'xxxx@im.wechat'. | |
| text | No | Message text. Optional when sending media only. | |
| media | No | Local file path or remote http(s) URL for an image/video/file attachment. | |
| accountId | No | Sending account id; required only when multiple accounts are logged in. | |
| filterMarkdown | No | Strip WeChat-unsupported markdown from text (default true). Set false to send raw text. |