send_file
Download a file from a URL and send it to a QQ group or friend as a file attachment. Supports any file type.
Instructions
Download a file from a URL and send it to a QQ group or friend.
Downloads the file to a temporary directory, uploads it to QQ, then cleans up. Supports any file type. For text use send_message, for images use send_image, for audio use send_voice.
Behavior: requires a publicly accessible URL (no auth). Download timeout is 60 seconds. The file is sent as a QQ file attachment.
Mutates the chat by sending a file.
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": {
"target": "<target>",
"file_url": "<file_url>"
},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| file_url | Yes | ||
| file_name | No | ||
| target_type | No | group |