/install feishu-md2blocks
Feishu Markdown to Blocks
Insert Markdown content—including tables—into Feishu documents via the block convert + descendant API.
When to Use
feishu_docwritereplaces the entire document; use this to insert content at a positionfeishu_doccreate_table_with_valueshas limitations for larger tables- You need to insert tables, code blocks, or complex nested content into an existing doc
Usage
# Insert from file (appends to document end)
python3 \x3Cskill_dir>/scripts/md2blocks.py \x3Cdoc_token> content.md
# Insert from stdin
echo "| A | B |\
|---|---|\
| 1 | 2 |" | python3 \x3Cskill_dir>/scripts/md2blocks.py \x3Cdoc_token> -
# Insert after a specific block
python3 \x3Cskill_dir>/scripts/md2blocks.py \x3Cdoc_token> content.md --after \x3Cblock_id>
# Replace all content
python3 \x3Cskill_dir>/scripts/md2blocks.py \x3Cdoc_token> content.md --replace
How It Works
- Calls
POST /docx/v1/documents/blocks/convertto convert Markdown → block structures - Removes
merge_infofrom table blocks (read-only field that causes insertion errors) - Calls
POST /docx/v1/documents/{doc}/blocks/{parent}/descendantto insert blocks
The descendant API handles nested structures (tables with cells containing text) that the simpler /children API cannot.
Position Control
The --after \x3Cblock_id> option inserts content right after the specified block. The script finds the block's index automatically.
Key detail: The /descendant API's index parameter must be in the request body, not as a URL query parameter. Passing ?index=N in the URL is silently ignored (content appends to end). The script handles this correctly.
Supported Markdown
Text, headings (h1-h9), bullet lists, ordered lists, code blocks, quotes, tables, todo items, dividers.
Limitations
- Images in Markdown are not automatically uploaded; they require separate upload + patch steps
- Max 1000 blocks per insert call; split large documents if needed
- Requires
docx:document.block:convertpermission on the Feishu app - Document edit rate limit: 3 ops/sec per document
Reference
For complete block-level API reference, see the feishu-block-ops skill which covers:
- All block APIs (create/read/update/delete/batch)
- Block type reference, text element types
- Table operation patterns (batch edit, merge cells)
- Common patterns and gotchas
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install feishu-md2blocks - 安装完成后,直接呼叫该 Skill 的名称或使用
/feishu-md2blocks触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Feishu Md2blocks 是什么?
Insert rich Markdown content (including tables) into Feishu documents. Use when feishu_doc write/append fails with tables, or when inserting complex formatte... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 302 次。
如何安装 Feishu Md2blocks?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-md2blocks」即可一键安装,无需额外配置。
Feishu Md2blocks 是免费的吗?
是的,Feishu Md2blocks 完全免费(开源免费),可自由下载、安装和使用。
Feishu Md2blocks 支持哪些平台?
Feishu Md2blocks 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Feishu Md2blocks?
由 deadblue(@deadblue22)开发并维护,当前版本 v1.0.0。