Identify User Intent: — Determine the desired action (upload, download, create, comment, etc.) and target file/folder.
2
Contextualize Document Type: — Determine the document type (docx, sheet, bitable, etc.) and extract the correct token (file_token, folder_token, obj_token).
3
Handle Wiki Links: — If the URL is a Wiki link, resolve it to the underlying document type and token using `wiki.spaces.get_node`.
4
Select Appropriate Tool: — Choose the appropriate Lark CLI command or shortcut based on the action and document type.
5
Execute Command: — Execute the command with the correct parameters, including tokens, content, and options.
6
Handle Errors: — Catch and handle potential errors such as invalid tokens or permission issues.
7
Provide Feedback: — Confirm the successful execution of the action to the user.
manage files in Feishu Driveupload a file to Lark cloud storagedownload a document from Feishucreate a folder in Lark Drivemove a file in Feishu cloudadd a comment to a Feishu documentget file metadata in Lark Driveconvert local file to Feishu docximport local excel to Feishu bitablemanage document permissions in Feishu