feishu-md2blocks
Insert rich Markdown content (including tables) into Feishu documents. Use when feishu_doc write/append fails with tables, or when inserting complex formatted content (tables, code blocks, nested lists) into an existing document at a specific position.
Why use this skill?
Efficiently insert complex Markdown, tables, and code blocks into Feishu documents with this OpenClaw skill. Perfect for automating technical reports.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/deadblue22/feishu-md2blocksWhat This Skill Does
The feishu-md2blocks skill is a specialized tool designed to bridge the gap between simple text-based Markdown and the complex structural requirements of Feishu's Docx API. While native Feishu API endpoints for writing documents often replace the entire content or struggle with nested structures like tables, this skill leverages the Feishu /docx/v1/documents/blocks/convert endpoint. It processes Markdown inputs—converting them into valid block hierarchies—and then pushes them to specific locations within an existing document. By handling the conversion logic and technical nuances like removing read-only merge_info fields, it ensures that complex formatted content, such as tables, code blocks, and nested lists, are rendered correctly.
Installation
To add this skill to your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/deadblue22/feishu-md2blocks
Ensure that your Feishu application has the docx:document.block:convert permission enabled in the Developer Console. This permission is mandatory for the skill to successfully translate Markdown into Feishu-native blocks.
Use Cases
- Complex Reporting: Automate the generation of status reports that contain data tables or code snippets and append them to an existing project document.
- Dynamic Documentation: Inject formatted documentation into onboarding guides or project wikis without wiping out existing content.
- API-Driven Content Generation: Integrate with data analysis tools to convert tabular results into professional-looking tables within a Feishu Doc.
- Structured Lists: Maintain complex nested lists or todo items across collaborative team documents automatically.
Example Prompts
- "Insert the following table into my Q3-Report document after the executive summary section: [Paste Markdown table data]"
- "Append the latest error log code block from the dev server to the bottom of the Feishu document token doc_abc123."
- "Convert this Markdown list of team tasks and insert it after the block with ID 'blk_998877' in my project doc."
Tips & Limitations
- Rate Limits: Feishu enforces a limit of 3 operations per second per document. Avoid flooding the API if you are performing bulk updates.
- Image Handling: Images in Markdown are not automatically uploaded. They require a separate upload and patching sequence. This skill focuses on text, tables, and block-level formatting.
- Size Constraints: The API supports up to 1000 blocks per request. If your content is extremely large, break it down into smaller chunks.
- Positioning: Always ensure you have the correct
block_idwhen using the--afterflag. Incorrect IDs will default to appending at the end of the document.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-deadblue22-feishu-md2blocks": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, code-execution, file-read
Related Skills
feishu-comments
Read comments from Feishu documents. Use when: user asks to check/read/fetch comments on a Feishu doc, review feedback on a document, or collaborate on document revisions via comments.
feishu-api-lookup
Look up Feishu Open API documentation. Activate when: needing to find a specific Feishu API endpoint, understanding API parameters/response, writing scripts that call Feishu APIs, or troubleshooting Feishu API errors. Uses web_search + web_fetch to find and extract API docs in real-time.
feishu-bitable-query
Query Feishu Bitable (多维表格) with server-side filter, sort, field selection, and multiple output formats. Activate when querying bitable records with conditions, filtering multidimensional table data, or when data volume is large and client-side filtering is inefficient. Preferred over feishu_bitable_list_records tool when filter expressions or full pagination is needed.
feishu-thread-forward
Forward Feishu thread/topic to a user, group, or topic via REST API. Activate when: forwarding a thread/topic to another chat, sharing a topic post to a different group, or any scenario involving Feishu thread-level forwarding (转发话题). The built-in feishu message tool does NOT support thread forwarding — this skill fills that gap.
feishu-doc-sync
飞书文档增量同步与表格操作指南。覆盖:表格更新策略(delete+insert)、header_row 设置、insert action、列宽算法、三阶段 diff 同步。当需要同步本地文档到飞书、操作飞书表格、或做增量编辑时激活。