send_file
Send a local file to a specified WeChat contact or group, requiring the file to exist within an allowed directory. Returns failure if delivery cannot be confirmed.
Instructions
向明确指定的联系人或群聊发送本地文件。文件必须存在且位于允许目录内;未配置可发送目录时拒绝发送。结果无法确认时返回失败,不自动重试。
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": {
"recipient": "<recipient>",
"file_path": "<file_path>"
},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| dry_run | No | ||
| file_path | Yes | ||
| recipient | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||