lark-sheets

Installation
Summary

Create, manage, and manipulate Lark spreadsheets with full cell and sheet control.

  • Supports spreadsheet creation, sheet operations (create/copy/delete/update), and cell data management (read/write/append/find/replace)
  • Handles rich cell types including formulas, links with text, @mentions, @documents, and dropdown lists via object-format syntax
  • Provides row/column management, cell styling, merging, image insertion, filter views, and floating image support
  • Includes async export functionality and cross-sheet formula references (IMPORTRANGE) with up to 5 nesting levels
  • Requires lark-cli binary and proper authentication via shared Lark credentials; wiki links require node type resolution before use
SKILL.md

sheets

CRITICAL — 开始前 MUST 先用 Read 工具读取 ../lark-shared/SKILL.md,其中包含认证、权限处理。

术语约定

同一对象的交替说法,按此映射解析用户口语:工作表(sheet)= 子表 / tab / 标签页(sheet_id 是稳定标识);电子表格(spreadsheet)= 工作簿 / 表格(顶层容器,由 --url--spreadsheet-token 定位);reference_id = 表内对象的稳定标识,即各对象主键 flag 接受的值(与 --image-uri 图片上传句柄不是一回事)。

每类对象用各自的主键 flag 定位(命名不统一,按此表对照,不要凭直觉拼):

对象 主键 flag 对象 主键 flag
工作表 sheet --sheet-id 条件格式规则 --rule-id
图表 chart --chart-id 筛选视图 --view-id
透视表 pivot --pivot-table-id 迷你图(按组) --group-id
浮动图片 --float-image-id

飞书表格编辑准则(动手前必守,所有编辑类任务一律生效)

Installs
407.5K
Repository
larksuite/cli
GitHub Stars
16.4K
First Seen
Mar 28, 2026
lark-sheets — larksuite/cli