Feishu Document Operations (User Access) for Openclaw

A comprehensive tool for interacting with Feishu documents using user-level authentication for reading, writing, and block management.

hacksing
v1.0.1
Feb 23, 2026
0
1.8k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install feishu-user

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-user 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 Operations (User Access)?

The feishu-user skill provides a robust interface for developers to manage Feishu documents via the Feishu Open API. By utilizing User Access Tokens, it enables secure, identity-based operations on personal and shared documents within the Feishu ecosystem. This integration within the Openclaw Skills library allows AI agents and automated scripts to handle complex document structures, making it an essential tool for teams relying on Feishu for collaboration.

Whether you need to extract information from existing docs or programmatically generate new reports, this skill simplifies the REST API interactions into a clean Pythonic interface. It supports the modern Feishu Docx format, ensuring compatibility with the latest features of the platform.

Feishu Document Operations (User Access) Use Cases

  • Automating the creation of weekly project reports directly in Feishu documents.
  • Syncing external data sources or meeting transcripts into centralized Feishu docs.
  • Building AI-driven research assistants that can browse and summarize Feishu cloud drive content.
  • Programmatically updating specific blocks in a document based on real-time system alerts.

How Feishu Document Operations (User Access) Works

  1. The user registers an application on the Feishu Open Platform to obtain an App ID and App Secret.
  2. An authorization URL is generated to request specific permissions like document reading and cloud drive searching.
  3. Upon user authorization, a temporary code is exchanged for a persistent User Access Token.
  4. The FeishuClient is initialized with the token to authorize REST API calls.
  5. The skill executes operations by targeting specific document tokens or block IDs through the Feishu Docx API.

Feishu Document Operations (User Access) Setup

To get started with this addition to Openclaw Skills, install the necessary Python dependencies:

pip install requests

Next, exchange your authorization code for a token using the following command:

curl -X POST "https://open.feishu.cn/open-apis/authen/v1/access_token" \
  -H "Content-Type: application/json" \
  -d '{
    "grant_type": "authorization_code",
    "code": "{YOUR_CODE}",
    "app_id": "{YOUR_APP_ID}",
    "app_secret": "{YOUR_APP_SECRET}"
  }'

Feishu Document Operations (User Access) Data Schema & Taxonomy

The skill manages document data through specific metadata and token structures:

Attribute Type Description
doc_token String The unique identifier for the Feishu document.
block_id String The identifier for a specific content block within a document.
user_access_token String The bearer token used for authenticating API requests.
config.json File Local storage at ~/.config/claw-feishu-user/ for cached tokens.

Feishu Document Operations (User Access) Advanced Features

  • Includes a dedicated feishu_token.py script for automated token refreshing and lifecycle management.
  • Provides granular control over document structure with block-level CRUD operations (Create, Read, Update, Delete).
  • Offers high-level convenience functions for quick document updates without manual client instantiation.
  • Supports identity-based access, allowing the agent to act on behalf of a specific user with full permission transparency.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*