send_file
Sends or uploads a file to a QQ friend or group from a URL, server path, or base64 data, with optional file name and group folder.
Instructions
Send a file to a friend or upload it to a group (群文件). Source: URL, path on the server, or base64.
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": "<file>"
},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | URL / path / base64 | |
| name | No | File name shown in QQ (default: from path/URL) | |
| target | Yes | Who to talk to: "qq:<QQ号>" for a friend/private chat, "group:<群号>" for a group, a bare number, or a friend remark/nickname/group name (must be unambiguous). | |
| folder_id | No | Group file folder id (groups only) |