Feishu Doc Long Content Handler for Openclaw

A strategic workflow to bypass Feishu's 1KB API limit for long document creation and management.

josephyb97
v1.0.0
Feb 25, 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-long-content

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-long-content 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 Doc Long Content Handler?

The Feishu Doc Long Content Handler is a specialized technical workflow designed for Openclaw Skills users to navigate the specific constraints of the Feishu (Lark) document API. Standard API actions like write and create impose a strict limit of approximately 1KB per content payload. Exceeding this limit typically results in 400 Bad Request errors or silent content truncation, leaving documents blank or incomplete.

This skill synthesizes best practices for splitting large Markdown datasets into manageable chunks of under 800 bytes. By integrating this logic into your Openclaw Skills ecosystem, you can reliably automate the transfer of long-form AI outputs, technical manuals, and comprehensive reports into the Feishu workspace without data loss.

Feishu Doc Long Content Handler Use Cases

  • Exporting multi-chapter AI-generated summaries to cloud-based Feishu documents.
  • Syncing large local Markdown repositories to team workspaces using Openclaw Skills.
  • Automating the generation of complex technical documentation that exceeds standard API payload limits.
  • Resolving 400 Bad Request errors during automated document migration tasks.

How Feishu Doc Long Content Handler Works

  1. The process begins by executing a create action to generate a blank document shell, which returns a unique doc_token.
  2. The skill analyzes the target content and partitions it into segments of roughly 800 characters to ensure the byte size remains within the safe limit.
  3. A write action is performed using the doc_token and the first chunk of content.
  4. For exceptionally long datasets, the skill manages sequential appends or splits the content into logically organized chapters across multiple documents.
  5. After writing, the system performs a read action to verify the block_count and ensure the content was fully processed by Openclaw Skills.

Feishu Doc Long Content Handler Setup

To use this skill, ensure your Feishu/Lark bot has the required permissions for document creation and modification. You must have the feishu_doc tool configured within your environment.

# Verify your tool integration status
openclaw tools status feishu_doc

# Configure your API credentials if not already set
openclaw configure feishu

Feishu Doc Long Content Handler Data Schema & Taxonomy

The skill organizes data based on the following API interaction schema:

Parameter Requirement Description
action Required Defines the operation: create, write, or read.
doc_token Required for write The unique identifier for the target Feishu document.
content < 800 bytes The Markdown string to be uploaded in a single request.
title Required for create The metadata title for the new document entity.

Feishu Doc Long Content Handler Advanced Features

  • Intelligent header-aware splitting to maintain Markdown formatting integrity across chunks.
  • Automatic local Markdown backup generation to prevent data loss during network failures in Openclaw Skills.
  • Real-time truncation detection by comparing input character counts with remote block metadata.
  • Chapter-based multi-document output for extremely large datasets that exceed cumulative document limits.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*