feishu-doc-reader

Read and extract content from Feishu (飞书) and Lark documents. Supports Lark International (open.larksuite.com), wiki URLs, and Markdown export.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "feishu-doc-reader" with this command: npx skills add zhangyongcun/feishu-doc-reader/zhangyongcun-feishu-doc-reader-feishu-doc-reader

Feishu/Lark Document Reader

Read and extract content from Feishu (飞书) and Lark documents using the official Open API. Supports both Feishu China (open.feishu.cn) and Lark International (open.larksuite.com).

Configuration

Set Up Credentials

  1. Create ./reference/feishu_config.json from the sample:
{
  "app_id": "your_feishu_app_id",
  "app_secret": "your_feishu_app_secret",
  "api_base": "https://open.larksuite.com"
}

Set api_base to:

  • https://open.feishu.cn — Feishu China
  • https://open.larksuite.com — Lark International
  1. Secure the file:
chmod 600 ./reference/feishu_config.json

Alternatively, use environment variables: FEISHU_APP_ID, FEISHU_APP_SECRET, FEISHU_API_BASE.

Usage

Read Documents

The main script accepts wiki URLs, wiki tokens, or document tokens:

# Wiki URL (auto-extracts token and resolves to document)
python scripts/read_feishu_doc.py "https://tenant.larksuite.com/wiki/XYZ123"

# Wiki token (auto-resolves)
python scripts/read_feishu_doc.py "XYZ123"

# Document token (direct)
python scripts/read_feishu_doc.py "docx_AbCdEfGh"

# Simplified Markdown output
python scripts/read_feishu_doc.py "docx_AbCdEfGh" --format simple

# Read a spreadsheet
python scripts/read_feishu_doc.py "sheet_token" --type sheet

Get Raw Document Blocks

python scripts/get_feishu_doc_blocks.py "docx_AbCdEfGh"

Shell Wrappers

./scripts/read_doc.sh "docx_token"
./scripts/get_blocks.sh "docx_token"

Test Authentication

python scripts/test_auth.py "app_id" "app_secret" "https://open.larksuite.com"

Supported Document Types

  • Docx (new docs): Full Markdown extraction with tables, headings, code, lists
  • Doc (legacy): Basic metadata and content
  • Sheet: Spreadsheet data extraction
  • Wiki: Auto-resolved to underlying document type via wiki API

API Permissions Required

  • docx:document:readonly — Read document content
  • wiki:wiki:readonly — Read wiki pages (for wiki URL/token support)
  • sheets:spreadsheet:readonly — Read spreadsheets (optional)

Error Handling

  • 401: Check App ID / App Secret
  • 403: Grant API permissions; ensure document is shared with app
  • 404: Verify document token
  • Wrong region: Use open.larksuite.com for Lark International

Security

  • Never commit reference/feishu_config.json (listed in .gitignore)
  • Use chmod 600 for credential files
  • Access tokens are cached in memory only

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

feishu-doc-reader

No summary provided by upstream source.

Repository SourceNeeds Review
General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated
General

explainer

Create explainer videos with narration and AI-generated visuals. Triggers on: "解说视频", "explainer video", "explain this as a video", "tutorial video", "introduce X (video)", "解释一下XX(视频形式)".

Archived SourceRecently Updated