Skip to content

Cloud Docs Tools

This document details the cloud document tools.

Tool List

ToolFunction
feishu_create_docCreate cloud documents
feishu_fetch_docGet document content
feishu_update_docUpdate documents
feishu_doc_commentsManage comments
feishu_doc_mediaInsert/download media

Create Document

Basic Usage

json
{
  "title": "Document Title",
  "markdown": "# Document Content\n\nThis is the body."
}

Specify Folder

json
{
  "title": "Meeting Notes",
  "folder_token": "fldcnxxxxx",
  "markdown": "# Meeting Notes\n\n## Topics\n\n1. Project Progress"
}

Feishu Markdown Syntax

Supported Syntax

  • # Heading - Level 1 heading
  • ## Heading - Level 2 heading
  • **Bold** - Bold text
  • *Italic* - Italic text
  • [Link](url) - Hyperlink
  • ![Image](url) - Image
  • - List - Unordered list
  • 1. List - Ordered list
  • > Quote - Quote block
  • ```code``` - Code block

Update Document

ModeDescription
appendAppend to end
overwriteOverwrite entire document
insert_beforeInsert before position
insert_afterInsert after position

Get Document Content

json
{
  "doc_id": "doxcnxxxxx"
}

Returns document content in Markdown format.

FAQ

Q: How to get folder_token?

Get from Feishu folder URL: https://xxx.feishu.cn/drive/folder/fldcnXXXXfldcnXXXX

Q: How to insert images?

Use <image url="..."/> syntax:

markdown
<image url="https://example.com/image.png"/>

Released under the MIT License.