Upload an image to WeChat Official Account
wechat_official_upload_imageUpload a local image to your WeChat Official Account as cover material or article body image. Returns metadata like media_id and CDN URL after confirmation.
Instructions
Upload one local JPEG, PNG, or GIF image to the logged-in WeChat Official Account as material (cover) or article body image. Returns safe metadata (filename, size, MIME, media_id, CDN URL). Requires confirm=true. Never publishes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usage | No | Upload as material (cover/library) or article (inline body image) | material |
| confirm | Yes | Must be set to true to proceed with the upload. | |
| file_path | Yes | Local path to the image file (must be within WECHAT_OFFICIAL_UPLOAD_ROOTS) | |
| response_format | No | markdown |