Feishu Update Doc
Precise in-place edits for Feishu cloud docs across seven update modes, with overwrite reserved for full rebuilds.
- CCM score
- 66 of 100
- skills.sh installs
- 192
- GitHub stars
- 2.4K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers append, overwrite, range and full-text replacement, insert before or after, and deletion, all targeted by content match or section title
- Locates edits with
selection_with_ellipsis(range or exact match,\.\.\.escape) orselection_by_title, and returnsreplace_countforreplace_all - Warns that overwrite clears the document and can lose images or comments, so partial updates are the default recommendation
- Designed for editing Feishu docs that hold images, whiteboards, tables, or tasks that cannot be read back and rewritten intact
Install
$ npx -y skills add larksuite/openclaw-lark --skill feishu-update-doc -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
feishu__update_doc
更新飞书云文档内容,支持 7 种更新模式。优先使用局部更新(replace_range/append/insert_before/insert_after),慎用 overwrite(会清空文档重写,可能丢失图片、评论等)。
定位方式
定位模式(replace_range/replace_all/insert_before/insert_after/delete_range)支持两种定位方式,二选一:
selection_with_ellipsis - 内容定位
支持两种格式:
-
范围匹配:
开头内容...结尾内容- 匹配从开头到结尾的所有内容(包含中间内容)
- 建议 10-20 字符确保唯一性
-
精确匹配:
完整内容(不含...)- 匹配完整的文本内容
- 适合替换短文本、关键词等
转义说明:如果要匹配的内容本身包含 ...,使用 \.\.\. 表示字面量的三个点。
示例:
你好...世界→ 匹配从"你好"到"世界"之间的任意内容你好\.\.\.世界→ 匹配字面量 "你好...世界"
建议:如果文档中有多个 ...,建议使用更长的上下文来精确定位,避免歧义。
selection_by_title - 标题定位
格式:## 章节标题(可带或不带 # 前缀)
自动定位整个章节(从该标题到下一个同级或更高级标题之前)。
示例:
## 功能说明→ 定位二级标题"功能说明"及其下所有内容功能说明→ 定位任意级别的"功能说明"标题及其内容
可选参数
new_title
更新文档标题。如果提供此参数,将在更新文档内容后同步更新文档标题。
特性:
- 仅支持纯文本,不支持富文本格式
- 长度限制:1-800 字符
- 可以与任何 mode 配合使用
- 标题更新在内容更新之后执行
返回值
成功
{
"success": true,
"doc_id": "文档ID",
"mode": "使用的模式",
"message": "文档更新成功(xxx模式)",
"warnings": ["可选警告列表"],
"log_id": "请求日志ID"
}
异步模式(大文档超时)
{
"task_id": "async_task_xxxx",
"message": "文档更新已提交异步处理,请使用 task_id 查询状态",
"log_id": "请求日志ID"
}
Details
- Repository
- github.com/larksuite/openclaw-lark
- Categories
- Office Files & Slides, Technical Documentation
- First seen
- Jun 3, 2026
Questions
What does the feishu-update-doc skill do?
It updates existing Feishu cloud documents and supports seven update modes: append, overwrite, locate-and-replace, replace all, insert before, insert after, and delete. Local updates are preferred, since overwrite clears the document and may lose images and comments.
How do I install the feishu-update-doc skill?
Run npx -y skills add larksuite/openclaw-lark --skill feishu-update-doc -y in a project. The skill then lets the agent edit Feishu documents by document ID or URL.
Where does feishu-update-doc stand in the Office Files and Slides category?
It is listed in the Office Files and Slides category alongside slideshow, lark-doc, lark-drive, lark-sheets and lark-whiteboard. Its focus is precise in-place edits to Feishu cloud documents, with content targeted by text range or by section title.
Can feishu-update-doc change a document title?
Yes, the new_title parameter updates the document title as plain text, from 1 to 800 characters, after the content update runs. It can be combined with any update mode.
Does feishu-update-doc protect images and other embedded content?
Yes, the skill advises targeting only the plain-text parts of a document, since images, whiteboards, spreadsheets and tasks are stored as tokens that cannot be rewritten as-is. Its local update modes keep existing media, comments and collaboration history.
More from larksuite/openclaw-lark
All 7Similar to Feishu Update Doc
More Office Files & Slidesfeishu-docm1heng/clawdbot-feishu1.9K installsRead, write, and comment on Feishu documents through one feishu_doc tool with action-based calls.
feishu-create-doclarksuite/openclaw-lark366 installsCreates Feishu cloud documents from Lark-flavored Markdown, placed in a folder, wiki node, or wiki space.
lark-doclarksuite/cli503.3K installsFeishu cloud document skill for reading, creating, editing Docx and Wiki content, managing images and mind notes.
feishu-fetch-doclarksuite/openclaw-lark230 installsFetches Feishu cloud document content as Markdown, with media handled through a companion download tool.
feishu-wikim1heng/clawdbot-feishu465 installsSingle Feishu wiki tool that lists, creates, moves, and renames knowledge base nodes and pages.