wecom_upload_media
Upload a local file as WeCom temporary media, supporting mass-send and moment attachments via attachment type parameter.
Instructions
Upload a local file as WeCom temporary media.
If ``attachment_type`` (1=mass-send, 2=moment) is given, uses
``/cgi-bin/media/upload_attachment``; otherwise uses the plain
``/cgi-bin/media/upload`` endpoint.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "wecom_upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| media_type | No | image | |
| attachment_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||