manage_drive_file
Copy, move, or delete Feishu Drive files and folders. Provide file token, resource type, and action; optionally specify destination folder or new name.
Instructions
[Official API] Manage a Drive file/doc/folder. action=copy (duplicate to a new name + folder), move (relocate, returns task_id), delete (remove, returns task_id). type is always required (Feishu rejects with 1061002 / 1062501 otherwise).
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": {
"action": "<action>",
"file_token": "<file_token>",
"type": "<type>"
},
"name": "manage_drive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Operation to perform | |
| file_token | Yes | File/folder token to operate on (required for all actions). | |
| type | Yes | Resource type — Feishu requires this to know which API table to look up. | |
| name | No | New name — required for action=copy. | |
| folder_token | No | Destination folder token — required for action=move; optional for action=copy (defaults to root). |