upload_file
Upload a file to Feishu and obtain a file_key required to send the file as a user via send_file_as_user.
Instructions
[Official API] Upload a file to Feishu. Returns file_key for use with send_file_as_user.
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": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the file on disk | |
| file_type | No | File type (default: stream for generic files) | |
| file_name | No | Display file name (optional, defaults to basename) |