Feishu Document Exporter for Openclaw

A powerful CLI tool to batch export Feishu documents and folders into clean Markdown or PDF files while maintaining original hierarchy.

night556
v1.0.0
Mar 6, 2026
0
1.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install feishu-doc-exporter

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install feishu-doc-exporter using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Feishu Document Exporter?

The Feishu Document Exporter is a specialized utility within the Openclaw Skills ecosystem designed to bridge the gap between cloud-based collaboration and local documentation workflows. It allows developers and teams to programmatically extract content from Feishu (Lark), transforming complex document structures into portable formats like Markdown or PDF.

By leveraging Openclaw Skills, users can automate their knowledge base backups and ensure their technical documentation is always available offline. This tool is particularly useful for teams that need to sync cloud-based documentation with local git repositories or static site generators.

Feishu Document Exporter Use Cases

  • Creating local backups of corporate knowledge bases hosted on Feishu.
  • Migrating documentation from Feishu to static site generators via Markdown export.
  • Generating high-quality PDF versions of internal guides for offline distribution.
  • Synchronizing Feishu folder hierarchies with local developer environments using Openclaw Skills.

How Feishu Document Exporter Works

  1. Authenticate with the Feishu API using the required read permissions for documents and folders.
  2. Provide a document URL or folder token to the Openclaw Skills command line interface.
  3. The exporter recursively traverses the specified Feishu folder hierarchy if the recursive flag is set.
  4. Document content is parsed, and media assets like images are downloaded as local files to maintain link integrity.
  5. The tool generates the final Markdown or PDF files, preserving the original table of contents and formatting structure.

Feishu Document Exporter Setup

To use this tool within the Openclaw Skills framework, ensure your Feishu API has the following permissions: doc:document:read, drive:folder:read, and drive:file:read.

# Export a single document to markdown
openclaw feishu-doc-exporter export --url "https://example.com/docx/xxx" --format markdown --output ./export

# Export entire folder recursively
openclaw feishu-doc-exporter export --folder "folder_token" --format pdf --output ./export --recursive

# List all documents in a folder to find tokens
openclaw feishu-doc-exporter list --folder "folder_token"

Feishu Document Exporter Data Schema & Taxonomy

Element Description
Directory Structure Replicates the nested folder hierarchy found in Feishu/Lark
Assets Images are saved locally and referenced via relative paths in Markdown
Navigation Automatically generates a Table of Contents for exported sets
Metadata Supports incremental export by tracking document changes

Feishu Document Exporter Advanced Features

  • Recursive Export: Automatically crawl through nested folder structures to export entire workspaces.
  • Incremental Export: Only download modified documents to optimize performance and API usage.
  • Local Asset Management: Downloads and maps all images as local files to ensure Markdown portability.
  • Flexible Formatting: Choose between Markdown for technical documentation or PDF for distribution via Openclaw Skills commands.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*