Skip to content

Cloud Drive Tools

This document details the cloud drive (Drive) tools.

Tool List

ToolFunction
feishu_drive_fileManage cloud drive files

Functions

OperationDescription
listList folder contents
get_metaGet file metadata
copyCopy file
moveMove file
deleteDelete file
uploadUpload file
downloadDownload 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

  1. For upload, prefer using file_path - automatically extracts filename and size
  2. For download, provide output_path to save locally, otherwise returns Base64
  3. Move/copy/delete require file_token and type parameters

Released under the MIT License.