Cloud Drive Tools
This document details the cloud drive (Drive) tools.
Tool List
| Tool | Function |
|---|---|
| feishu_drive_file | Manage cloud drive files |
Functions
| Operation | Description |
|---|---|
| list | List folder contents |
| get_meta | Get file metadata |
| copy | Copy file |
| move | Move file |
| delete | Delete file |
| upload | Upload file |
| download | Download file |
Usage Examples
List Root Directory
json
{
"action": "list"
}List Specific Folder
json
{
"action": "list",
"folder_token": "fldcnxxxxx"
}Get File Info
json
{
"action": "get_meta",
"request_docs": [
{"doc_token": "doxcnxxxxx", "doc_type": "doc"}
]
}Upload File
json
{
"action": "upload",
"file_path": "/local/file.pdf",
"folder_token": "fldcnxxxxx"
}Download File
json
{
"action": "download",
"file_token": "doxcnxxxxx",
"output_path": "/local/save/file.pdf"
}Notes
- For upload, prefer using
file_path- automatically extracts filename and size - For download, provide
output_pathto save locally, otherwise returns Base64 - Move/copy/delete require
file_tokenandtypeparameters