Loading...
Loading...
Lark Cloud Docs: Create and edit Lark documents. Create documents from Markdown, retrieve document content, update documents (append/overwrite/replace/insert/delete), upload and download images and files in documents, and search cloud space documents. Use this when users need to create or edit Lark documents, read document content, insert images into documents, or search cloud space documents; if users want to locate cloud space objects such as spreadsheets and reports by name or keyword, prioritize using the docs +search feature of this skill for resource discovery.
npx skill4agent add larksuite/cli lark-doc../lark-shared/SKILL.mdfile_token| URL Format | Example | Token Type | Handling Method |
|---|---|---|---|
| | | Use the token in the URL path directly as the |
| | | Use the token in the URL path directly as the |
| | | ⚠️ Cannot be used directly, you need to query to obtain the real |
| | | Use the token in the URL path directly as the |
| | | Use the token in the URL path as the folder token |
/wiki/TOKENwiki.spaces.get_nodelark-cli wiki spaces get_node --params '{"token":"wiki_token"}'node.obj_typenode.obj_tokennode.titleobj_type| obj_type | Description | API to Use |
|---|---|---|
| New version cloud document | |
| Old version cloud document | |
| Spreadsheet | |
| Base table | |
| Slides | |
| File | |
| Mind map | |
# Query wiki node
lark-cli wiki spaces get_node --params '{"token":"wiki_token"}'{
"node": {
"obj_type": "docx",
"obj_token": "xxxx",
"title": "Title",
"node_type": "origin",
"space_id": "12345678910"
}
}Wiki Space
└── Wiki Node
├── obj_type: docx (New version document)
│ └── obj_token (Real document token)
├── obj_type: doc (Old version document)
│ └── obj_token (Real document token)
├── obj_type: sheet (Spreadsheet)
│ └── obj_token (Real document token)
├── obj_type: bitable (Base table)
│ └── obj_token (Real document token)
└── obj_type: file/slides/mindnote
└── obj_token (Real document token)
Drive Folder
└── File (File/Document)
└── file_token (Use directly)⚠️ The lark-doc skill cannot directly edit existing whiteboard content, butcan create new blank whiteboardsdocs +update
docs +fetch<whiteboard token="xxx"/>../lark-whiteboard/SKILL.mddocs +update<whiteboard type="blank"></whiteboard>--markdown--markdowndocs +updatedata.board_tokensdata.board_tokens../lark-whiteboard/SKILL.mddocs +update../lark-whiteboard/SKILL.mdlark-cli docs +searchdocs +searchSHEETlark-sheetsdocs +searchlark-cli docs +<verb> [flags]| Shortcut | Description |
|---|---|
| Search Lark docs, Wiki, and spreadsheet files (Search v2: doc_wiki/search) |
| Create a Lark document |
| Fetch Lark document content |
| Update a Lark document |
| Insert a local image or file at the end of a Lark document (4-step orchestration + auto-rollback) |
| Download document media or whiteboard thumbnail (auto-detects extension) |
| Update an existing whiteboard in lark document with whiteboard dsl. Such DSL input from stdin. refer to lark-whiteboard skill for more details. |