+search | Search Lark docs, Wiki, and spreadsheet files with flat filter flags (preferred over docs +search). Natural-language-friendly: --edited-since, --mine, --doc-types, etc. |
+upload | Upload a local file to a Drive folder or wiki node |
+create-folder | Create a Drive folder, optionally under a parent folder, with bot auto-grant support |
+download | Download a file from Drive to local |
+status | Compare a local directory with a Drive folder by SHA-256 content hash; reports new_local / new_remote / modified / unchanged (read-only diff primitive for sync workflows). Duplicate remote rel_path conflicts fail fast with error.type=duplicate_remote_path and list every conflicting entry; do not proceed as if one was chosen. --local-dir 必须是 cwd 内的相对路径,越界路径 CLI 会直接拒绝;目标在 cwd 外时引导用户切换 agent 工作目录,不要私自 cd 绕过。 |
+pull | One-way file-level mirror of a Drive folder onto a local directory (Drive → local). Duplicate remote rel_path conflicts fail by default before writing; for duplicate files only, --on-duplicate-remote rename downloads all copies with stable hashed suffixes, while newest / oldest explicitly choose one. Supports --if-exists (overwrite/skip) and --delete-local for orphan cleanup; the destructive --delete-local requires --yes and only unlinks regular files — empty local directories left behind by remote folder deletes are NOT pruned. Item-level failures exit non-zero (error.type=partial_failure) and skip the --delete-local pass to avoid half-synced state. --local-dir is bounded to cwd by CLI path validation; tell the user to switch the agent’s working directory if the target is outside cwd. |
+create-shortcut | Create a shortcut to an existing Drive file in another folder |
+add-comment | Add a comment to doc/docx/sheet/slides, also supports wiki URL resolving to doc/docx/sheet/slides |
+export | Export a doc/docx/sheet/bitable to a local file with limited polling; supports --file-name for local naming |
+export-download | Download an exported file by file_token |
+import | Import a local file to Drive as a cloud document (docx, sheet, bitable) |
+move | Move a file or folder to another location in Drive |
+delete | Delete a Drive file or folder with limited polling for folder deletes |
+push | Mirror a local directory onto a Drive folder (local → Drive). Duplicate remote rel_path conflicts fail by default before upload / overwrite / delete; use --on-duplicate-remote newest|oldest only when the conflict is duplicate files and you explicitly want to target one existing remote file. Supports --if-exists (overwrite/skip) and --delete-remote for one-way mirror sync; the destructive --delete-remote requires --yes. --local-dir is bounded to cwd by CLI path validation; tell the user to switch the agent’s working directory if the source is outside cwd. |
+task_result | Poll async task result for import, export, move, or delete operations |
+apply-permission | Apply to the document owner for view/edit access (user-only; 5/day per document) |