Feishu File Uploader for Openclaw

A specialized utility for Openclaw agents to upload and send local media files directly to Feishu users via internal API calls.

bingothreed
v1.0.2
Mar 23, 2026
0
948
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install feishu-files

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-files 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 File Uploader?

The Feishu File Uploader is a technical workflow designed for Openclaw Skills to bypass the current limitations of standard messaging tools. While default tools may struggle with direct binary transfers of local media, this skill leverages the Feishu Open Platform API to ensure high-fidelity delivery of images and videos.

By utilizing native system commands like curl and python3, this skill provides a reliable bridge between an agent's local environment and the Feishu workspace. It is particularly useful for automated reporting, sharing generated assets, or sending security captures directly into team chats.

Feishu File Uploader Use Cases

  • Sending AI-generated images or charts from a local workspace to a Feishu chat.
  • Automating video status reports for long-running devops processes.
  • Overcoming standard message tool limitations when handling local binary files.
  • Integrating Feishu notifications into multi-step agentic workflows.

How Feishu File Uploader Works

  1. The agent extracts the App Secret and App ID from the local Openclaw configuration file.
  2. A POST request is made to the Feishu internal auth endpoint to generate a temporary tenant_access_token.
  3. The local file is uploaded to Feishu's media servers to generate a unique image_key or file identifier.
  4. The agent sends a message to the specified recipient (using open_id) referencing the generated media key.

Feishu File Uploader Setup

Ensure your Feishu App credentials are configured in your Openclaw environment. You can use the following logic within an exec tool:

# Extract credentials and fetch token
APP_SECRET=$(python3 -c "import json; c=json.load(open('/root/.openclaw/openclaw.json')); print(c['channels']['feishu']['appSecret'])")
APP_ID=$(python3 -c "import json; c=json.load(open('/root/.openclaw/openclaw.json')); print(c['channels']['feishu']['appId'])")
TOKEN=$(curl -s -X POST 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal' \
-H 'Content-Type: application/json' \
-d '{"app_id":"'$APP_ID'","app_secret":"'$APP_SECRET'"}' \
| python3 -c "import json,sys; print(json.load(sys.stdin)['tenant_access_token'])")

Feishu File Uploader Data Schema & Taxonomy

The skill interacts with the following data points to facilitate the transfer:

Attribute Description Source
appId Unique Feishu Application ID openclaw.json
appSecret Secret key for API authentication openclaw.json
image_key The unique ID returned after a successful upload Feishu API
receive_id The Open ID of the target recipient User Input

Feishu File Uploader Advanced Features

  • Support for multi-step media processing before upload.
  • Dynamic token retrieval to ensure secure, short-lived sessions.
  • Integration with local Python scripts for advanced JSON parsing of API responses.
  • Extensible to support video and other file types beyond standard images.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*