lark-doc

Create, fetch, update, and search Lark cloud documents 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-doc-minimax-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-doc
Source: https://github.com/MiniMax-AI/minimax-code/tree/main/packages/local-runtime/assets/skills/lark-tools/cli-skills/lark-doc
Command: npx skills add https://github.com/MiniMax-AI/minimax-code --skill lark-doc-minimax-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Managing Feishu (Lark) cloud documents from the terminal or an AI agent normally requires juggling raw OpenAPI calls, token types, and wiki link resolution. This Skill wraps those operations into high-level lark-cli shortcuts so you can create, read, update, and search documents without hand-writing API requests. ## Core Features & Use Cases - Document lifecycle management: Create documents from Lark-flavored Markdown, fetch content as Markdown, and update with 7 modes (append, replace_range, replace_all, insert_before, insert_after, delete_range, overwrite). - Media handling: Insert local images/files into documents, preview or download embedded media, and download whiteboard thumbnails. - Cloud-space search: Use Search v2 to discover docs, Wiki nodes, spreadsheets, and bitables with Boolean query syntax and rich filters (owner, type, time range, folder, chat). - Use Case: Ask the agent to "create a project plan doc in my wiki space with an architecture whiteboard" — it creates the doc, inserts a blank whiteboard, and hands off to the whiteboard skill to fill in the diagram. ## Quick Start Ask the agent to create a Feishu document titled "Weekly Report" from a Markdown outline, or to fetch the content of a given Lark document URL.

Frequently Asked Questions about lark-doc

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

FAQPage Schema
How do I create a Feishu document from Markdown?

Run lark-cli docs +create with --title and --markdown containing Lark-flavored Markdown. Optionally pass --folder-token, --wiki-node, or --wiki-space to control where the document is created. The command returns doc_id and doc_url.

How do I update part of a Lark document without rewriting it?

Use lark-cli docs +update with a local mode like append, replace_range, insert_before, or insert_after, locating content via --selection-with-ellipsis or --selection-by-title. Avoid overwrite mode since it clears the document and can lose images and comments.

Can I use a wiki URL directly for document operations?

Not directly. A /wiki/ link hides the real document type, so first call lark-cli wiki spaces get_node to obtain obj_type and obj_token, then use the matching API (docx, sheet, or bitable) with the real token.

How do I search Lark docs and spreadsheets by keyword?

Use lark-cli docs +search --query "keyword", which searches docs, Wiki, sheets, and bitables via Search v2. It supports Boolean syntax, intitle: phrases, and --filter JSON for owner, doc type, time range, folder, or chat scoping.

Why can't I edit an existing whiteboard with docs +update?

docs +update can only create new blank whiteboards via <whiteboard type="blank"></whiteboard>; it cannot modify existing whiteboard content. To edit a whiteboard, take its token from data.board_tokens or the fetched markdown and use the lark-whiteboard skill.

How do I insert a local image into a Feishu document?

Run lark-cli docs +media-insert --doc <doc_id> --file ./image.png, optionally with --align and --caption. It only accepts a docx document ID or /docx/ URL, not a /wiki/ link, so prefer the doc_id returned by docs +create.