upload_drive_file
Upload a local file to a Feishu Drive folder. Optionally attach it to a Wiki space for documentation.
Instructions
[Official API] Upload a file from disk to a Feishu Drive folder (drive/v1/files/upload_all, parent_type=explorer). Returns file_token + url. If wiki_space_id is provided, the uploaded file is then attached to that Wiki space via move_docs_to_wiki (obj_type=file). UAT-first with app fallback.
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>",
"folder_token": "<folder_token>"
},
"name": "upload_drive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the file on disk | |
| folder_token | Yes | Destination folder token. Use list_files to find one, or pass the user "我的空间" root token. | |
| wiki_space_id | No | Optional. If set, also attach the uploaded file to this Wiki space. | |
| wiki_parent_node_token | No | Optional. Parent node under which to attach in the Wiki space. |