feishu-doc by m1heng/clawdbot-feishu
npx skills add https://github.com/m1heng/clawdbot-feishu --skill feishu-doc单一工具 feishu_doc,通过 action 参数支持所有文档操作,包括评论管理。
从 URL https://xxx.feishu.cn/docx/ABC123def → doc_token = ABC123def
从 URL https://xxx.feishu.cn/docs/doccn123c → doc_token = doccn123c
{ "action": "read", "doc_token": "ABC123def" }
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
返回:标题、纯文本内容、区块统计信息。检查 hint 字段 - 如果存在,则表示有结构化内容(表格、图片)需要调用 list_blocks。
{ "action": "write", "doc_token": "ABC123def", "content": "# Title\n\nMarkdown content..." }
用 Markdown 内容替换整个文档。支持:标题、列表、代码块、引用、链接、图片( 自动上传)、粗体/斜体/删除线。
限制: 不支持 Markdown 表格。
{
"action": "create_and_write",
"title": "New Document",
"content": "# Title\n\nMarkdown content..."
}
指定文件夹:
{
"action": "create_and_write",
"title": "New Document",
"content": "# Title\n\nMarkdown content...",
"folder_token": "fldcnXXX"
}
一次调用完成创建文档并写入内容。建议优先使用此方法,而不是单独的 create + write。
{ "action": "append", "doc_token": "ABC123def", "content": "Additional content" }
将 Markdown 内容追加到文档末尾。
{ "action": "create", "title": "New Document" }
指定文件夹:
{ "action": "create", "title": "New Document", "folder_token": "fldcnXXX" }
创建一个空文档(仅标题)。
{ "action": "list_blocks", "doc_token": "ABC123def" }
返回完整的区块数据,包括表格、图片。使用此方法读取结构化内容。
{ "action": "get_block", "doc_token": "ABC123def", "block_id": "doxcnXXX" }
{ "action": "update_block", "doc_token": "ABC123def", "block_id": "doxcnXXX", "content": "New text" }
{ "action": "delete_block", "doc_token": "ABC123def", "block_id": "doxcnXXX" }
{ "action": "list_comments", "doc_token": "ABC123def", "page_size": 50 }
返回文档的所有评论。使用 page_token 进行分页。评论包含 is_whole 字段,用于区分全文评论(true)和区块级评论(false)。
{ "action": "get_comment", "doc_token": "ABC123def", "comment_id": "comment_xxx" }
{ "action": "create_comment", "doc_token": "ABC123def", "content": "Comment text" }
{ "action": "list_comment_replies", "doc_token": "ABC123def", "comment_id": "comment_xxx", "page_size": 50 }
page_size 应为正整数。如果省略,工具默认为 50。
当前工具提供了文档化的评论写入操作 create_comment(创建全局评论)。对于回复,使用 list_comment_replies 进行检索;回复创建端点未在当前 SDK 接口中公开。
action: "read" 开始 - 获取纯文本和统计信息block_types 以了解表格、图片、代码等action: "list_blocks" 获取完整数据channels:
feishu:
tools:
doc: true # 默认: true
注意: feishu_wiki 依赖此工具 - 知识库页面内容通过 feishu_doc 读取/写入。
必需:docx:document, docx:document:readonly, docx:document.block:convert, drive:drive
对于评论操作:
docx:document.comment:readdocx:document.comment(可选,用于 create_comment)1.2K
4.3K
2026年2月3日
opencode1.2K
codex1.2K
cursor1.2K
gemini-cli1.2K
github-copilot1.2K
amp1.2K
Single tool feishu_doc with action parameter for all document operations including comment management.
From URL https://xxx.feishu.cn/docx/ABC123def → doc_token = ABC123def From URL https://xxx.feishu.cn/docs/doccn123c → doc_token = doccn123c
{ "action": "read", "doc_token": "ABC123def" }
Returns: title, plain text content, block statistics. Check hint field - if present, structured content (tables, images) exists that requires list_blocks.
{ "action": "write", "doc_token": "ABC123def", "content": "# Title\n\nMarkdown content..." }
Replaces entire document with markdown content. Supports: headings, lists, code blocks, quotes, links, images ( auto-uploaded), bold/italic/strikethrough.
Limitation: Markdown tables are NOT supported.
{
"action": "create_and_write",
"title": "New Document",
"content": "# Title\n\nMarkdown content..."
}
With folder:
{
"action": "create_and_write",
"title": "New Document",
"content": "# Title\n\nMarkdown content...",
"folder_token": "fldcnXXX"
}
Creates the document and writes content in one call. Prefer this over separate create + write.
{ "action": "append", "doc_token": "ABC123def", "content": "Additional content" }
Appends markdown to end of document.
{ "action": "create", "title": "New Document" }
With folder:
{ "action": "create", "title": "New Document", "folder_token": "fldcnXXX" }
Creates an empty document (title only).
{ "action": "list_blocks", "doc_token": "ABC123def" }
Returns full block data including tables, images. Use this to read structured content.
{ "action": "get_block", "doc_token": "ABC123def", "block_id": "doxcnXXX" }
{ "action": "update_block", "doc_token": "ABC123def", "block_id": "doxcnXXX", "content": "New text" }
{ "action": "delete_block", "doc_token": "ABC123def", "block_id": "doxcnXXX" }
{ "action": "list_comments", "doc_token": "ABC123def", "page_size": 50 }
Returns all comments for the document. Use page_token for pagination. Comments include is_whole field to distinguish between whole-document comments (true) and block-level comments (false).
{ "action": "get_comment", "doc_token": "ABC123def", "comment_id": "comment_xxx" }
{ "action": "create_comment", "doc_token": "ABC123def", "content": "Comment text" }
{ "action": "list_comment_replies", "doc_token": "ABC123def", "comment_id": "comment_xxx", "page_size": 50 }
page_size should be a positive integer. If omitted, tool defaults to 50.
Current tool provides documented comment write action create_comment (global comment creation). For replies, use list_comment_replies for retrieval; the reply creation endpoint is not exposed in current SDK surface.
action: "read" - get plain text + statisticsblock_types in response for Table, Image, Code, etc.action: "list_blocks" for full datachannels:
feishu:
tools:
doc: true # default: true
Note: feishu_wiki depends on this tool - wiki page content is read/written via feishu_doc.
Required: docx:document, docx:document:readonly, docx:document.block:convert, drive:drive
For comment operations:
docx:document.comment:readdocx:document.comment (optional, for create_comment)Weekly Installs
1.2K
Repository
GitHub Stars
4.3K
First Seen
Feb 3, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode1.2K
codex1.2K
cursor1.2K
gemini-cli1.2K
github-copilot1.2K
amp1.2K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装