larksuite avatar

Feishu Fetch Doc

Pulls Markdown content from Feishu (Lark) cloud documents via their API. The main thing to know is that images, files, and whiteboards come back as HTML tokens in the Markdown, not actual content, so you'll need to call a separate feishu_doc_media tool to download those assets. It handles both direct document URLs and wiki links, though wiki links require an extra step to figure out what type of document you're actually dealing with since they could point to spreadsheets or databases instead of docs. Straightforward if you're building Feishu integrations and need to extract document text programmatically.

skills.sh installs
229
GitHub stars
2.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add larksuite/openclaw-lark --skill feishu-fetch-doc --agent claude-code

Installs into .claude/skills of the current project.

Files

feishu_mcp_fetch_doc

获取飞书云文档的 Markdown 内容(Lark-flavored 格式)。

重要:图片、文件、画板的处理

文档中的图片、文件、画板需要通过 feishu_doc_media(action: download)工具单独获取!

识别格式

返回的 Markdown 中,媒体文件以 HTML 标签形式出现:

  • 图片:

    <image token="Z1FjxxxxxxxxxxxxxxxxxxxtnAc" width="1833" height="2491" align="center"/>
    
  • 文件:

    <view type="1">
      <file token="Z1FjxxxxxxxxxxxxxxxxxxxtnAc" name="skills.zip"/>
    </view>
    
  • 画板:

    <whiteboard token="Z1FjxxxxxxxxxxxxxxxxxxxtnAc"/>
    

获取步骤

  1. 从 HTML 标签中提取 token 属性值
  2. 调用 feishu_doc_media 下载:
    {
      "action": "download",
      "resource_token": "提取的token",
      "resource_type": "media",
      "output_path": "/path/to/save/file"
    }
    

参数

  • doc_id(必填):支持直接传文档 URL 或 token
    • 直接传 URL:https://xxx.feishu.cn/docx/Z1FjxxxxxxxxxxxxxxxxxxxtnAc(系统自动提取 token)
    • 直接传 token:Z1FjxxxxxxxxxxxxxxxxxxxtnAc
    • 知识库 URL/token 也支持:https://xxx.feishu.cn/wiki/Z1FjxxxxxxxxxxxxxxxxxxxtnAc 或 Z1FjxxxxxxxxxxxxxxxxxxxtnAc

Wiki URL 处理策略

知识库链接(/wiki/TOKEN)背后可能是云文档、电子表格、多维表格等不同类型的文档。当不确定类型时, 不能直接假设是云文档,必须先查询实际类型。

处理流程

Sponsors

Details

Repository
github.com/larksuite/openclaw-lark
Categories
Documentation, Office & Documents
First seen
Jun 3, 2026

More from larksuite/openclaw-lark

All 7
1aaaaqwq avatarseo-content-writingaaaaqwq/claude-code-skillsseo content writing225skills.sh installs
2sickn33 avatarapi-documentationsickn33/antigravity-awesome-skillsapi documentation215skills.sh installs
3larksuite avatarfeishu-update-doclarksuite/openclaw-lark更新飞书云文档。支持 7 种更新模式:追加、覆盖、定位替换、全文替换、前/后插入、删除。191skills.sh installs
4levnikolaevich avatarln-160-docs-skill-extractorlevnikolaevich/claude-code-skillsExtracts procedural content from project docs into slash commands. Use when docs contain deploy, test, or troubleshoot procedures.187skills.sh installs
5akillness avatarapi-documentationakillness/oh-my-skillsapi documentation174skills.sh installs
62025emma avatarclaude-code-guide2025emma/vibe-coding-cnclaude code guide155skills.sh installs