lark-drive

Manage Lark Drive files, folders, comments, permissions, and document imports via lark-cli.

1.3k|142|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/MiniMax-AI/minimax-code --skill lark-drive-minimax-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-drive
Source: https://github.com/MiniMax-AI/minimax-code/tree/main/packages/local-runtime/assets/skills/lark-tools/cli-skills/lark-drive
Command: npx skills add https://github.com/MiniMax-AI/minimax-code --skill lark-drive-minimax-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lark-cli, and includes references (resource) components.

What problem does it solve? Managing files in Lark (Feishu) Drive from the command line is fragmented across many APIs with confusing token types (file_token, wiki_token, folder_token) and async task polling. This Skill consolidates upload, download, import, export, move, delete, comment, and permission operations into guided shortcuts with correct token resolution and error handling. ## Core Features & Use Cases - File & Folder Management: Upload, download, copy, move, delete files, create folders and shortcuts, and rename docx, sheet, bitable, file, folder, and wiki titles. - Document Import/Export: Convert local Word, Markdown, Excel, and CSV files into Lark online documents (docx, sheet, bitable), and export cloud documents to PDF, DOCX, XLSX, CSV, or Markdown with async task polling. - Comments & Permissions: Add full-document or selected-text comments, list and reply to comments, manage reactions, grant collaborator permissions, and subscribe to comment events. - Use Case: A user asks to import a local sales CSV as a new Bitable, then share it with a teammate. The Skill runs lark-cli drive +import --type bitable, polls the task result, and grants permissions via permission.members create. ## Quick Start Ask the AI to upload a local file to a Lark Drive folder or import a local Excel file as a new Bitable using lark-cli drive shortcuts.

Frequently Asked Questions about lark-drive

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I import a local Excel or CSV file into Lark Bitable?

Run lark-cli drive +import --file ./data.xlsx --type bitable to convert a local Excel or CSV file into a Lark Bitable. The shortcut uploads the file, creates an import task, and polls until the new document token and URL are ready.

How do I upload a file to Lark Drive from the command line?

Use lark-cli drive +upload --file ./report.pdf --folder-token <FOLDER_TOKEN> to upload a local file to a Drive folder. Omitting the folder token uploads to the root directory, and files over 20MB automatically switch to multipart upload.

Can I use a wiki link directly for Drive file operations?

No, wiki URLs contain a wiki_token that cannot be used directly as a file_token. First call lark-cli wiki spaces get_node to resolve the real obj_token and obj_type, then use that token with the matching Drive, Sheets, or Bitable API.

How do I add a comment to selected text in a Lark docx document?

Use lark-cli drive +add-comment with --selection-with-ellipsis to target text, or --block-id for a known block. Local comments only support docx documents; omitting the selection flags creates a full-document comment instead.

Why does my Lark Drive export or import command return timed_out?

Import, export, and folder move or delete operations are asynchronous with limited built-in polling. When timed_out=true is returned, continue polling with lark-cli drive +task_result using the returned ticket or task_id until ready=true.

What file types can be imported as Lark online documents?

Word, TXT, Markdown, and HTML files import as docx; XLSX and CSV import as sheet or bitable; XLS imports only as sheet. Each format has size limits, such as 20MB for Markdown and 800MB for XLSX.