Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

feishu-toolkit飞书工具包

Agent Skill

feishu-toolkit 用于整理文档、README、Markdown 和说明材料,适合在 OpenClaw 中需要把零散信息整理成结构清晰的文档时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

130,650

周安装

5,337

GitHub Stars

公开资料未说明

下载量

42,269
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:feishu-toolkit(飞书工具包)
来源仓库:https://github.com/ye4wzp/feishu-toolkit
安装命令:
openclaw skills install feishu-toolkit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install feishu-toolkit

简介

飞书工具包用于整理文档、Markdown 和说明材料,生成结构清晰内容。

  • 适用于把零散信息整合成可读文档的场景。feishu-toolkit 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 通过 clawhub 安装,需结合来源仓库和 README 确认具体用法。
  • 安装前建议确认权限范围和维护状态,注意是否触发联网或文件读写。
  • 涉及文件操作时应核对路径和输出格式限制。

SKILL.md

name
feishu-toolkit
version
1.0.0
description
>
Triggers
飞书", "feishu", "lark", "读文档", "群聊记录", "发文件",
tags
[feishu, lark, document, chat, file, screenshot, permission, reminder, chinese, productivity]
env
FEISHU_APP_ID
Your Feishu app ID (from open.feishu.cn)
FEISHU_APP_SECRET
Your Feishu app secret

Feishu Toolkit (飞书工具箱)

A comprehensive Feishu (Lark) integration skill for AI agents. Covers 6 major capabilities:

  1. 📄 Document Operations — Read, create, write, and append Feishu Docs, Sheets, Bitable, Wiki
  2. 💬 Chat History — Fetch and summarize group chat messages
  3. 📎 File Sending — Upload and send files to Feishu chats via REST API
  4. 📸 Screenshot — Capture macOS screenshots and send to Feishu
  5. 🔐 Permission Management — List, add, remove document collaborators
  6. ⏰ Cron Reminders — Create scheduled recurring reminders to Feishu chats

Prerequisites

Feishu App Setup

  1. Go to Feishu Open Platform and create an app
  2. Enable required permissions:

- im:message:send_as_bot — Send messages - im:resource — Upload files/images - docx:document — Read/write documents - drive:permission — Manage permissions (optional)

  1. Set FEISHU_APP_ID and FEISHU_APP_SECRET environment variables

Authentication

All API calls use Feishu's tenant access token:

import requests

def get_tenant_token(app_id, app_secret):
    r = requests.post(
        'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal',
        json={'app_id': app_id, 'app_secret': app_secret}
    )
    return r.json()['tenant_access_token']

1. Document Operations (Read/Write/Create/Append)

Read a Document

# Fetch document content as Markdown
# Supports: doc, docx, sheet, bitable, wiki
GET /open-apis/docx/v1/documents/{document_id}/raw_content

Create a Document

POST /open-apis/docx/v1/documents
Body: {"title": "My Document"}

Write (Overwrite) a Document

# Overwrite entire document content with Markdown
POST /open-apis/docx/v1/documents/{document_id}/blocks/batch_update

Append Content (Long Documents)

For documents exceeding LLM output limits:

  1. Create the document first to get a doc_token
  2. Chunk content into logical sections
  3. Append each chunk sequentially
  4. Do NOT try to write the entire document in one call if it is very long

Wiki URL Resolution

Wiki URLs need to be resolved to actual document tokens first:

POST /open-apis/wiki/v2/spaces/get_node
Body: {"token": "wiki_token"}
# Returns the actual doc_token and doc_type

2. Chat History

Fetch and summarize messages from a Feishu group chat.

Fetch Messages

# GET /open-apis/im/v1/messages
params = {
    'container_id_type': 'chat',
    'container_id': chat_id,
    'page_size': 50
}

Message Types

TypeHandling
textExtract .body.content JSON → text field
interactiveExtract text nodes from elements array
imageNote as [图片]
systemFilter out unless relevant

Pagination

If has_more=true, fetch more pages using page_token. Default: 50 messages per page.


3. File Sending

Send files to Feishu chats via REST API.

Upload File

# POST /open-apis/im/v1/files
headers = {'Authorization': f'Bearer {token}'}
data = {'file_type': 'stream', 'file_name': 'filename.ext'}
files = {'file': ('filename.ext', open(path, 'rb'), 'application/octet-stream')}

Supported file_type: opus, mp4, pdf, doc, xls, ppt, stream (generic)

Send File Message

# POST /open-apis/im/v1/messages
json = {
    'receive_id': chat_id,
    'msg_type': 'file',
    'content': json.dumps({'file_key': file_key})
}

4. Screenshot & Send

Capture macOS screenshots and send to Feishu.

# 1. Capture screenshot
SCREENSHOT_PATH="$TMPDIR/screenshot_$(date +%s).png"
screencapture -x "$SCREENSHOT_PATH"

# 2. Upload image
# POST /open-apis/im/v1/images
# data: image_type=message, file=screenshot

# 3. Send image message
# POST /open-apis/im/v1/messages
# msg_type: image, content: {"image_key": "..."}
Note: Use $TMPDIR not /tmp on macOS.

5. Permission Management

Manage document/file permissions.

Actions

ActionDescription
listList all collaborators
addAdd collaborator with permission level
removeRemove a collaborator

Token Types

doc, docx, sheet, bitable, folder, file, wiki, mindnote

Member Types

email, openid, userid, unionid, openchat, opendepartmentid

Permission Levels

LevelDescription
viewView only
editCan edit
full_accessFull access (can manage permissions)

Example: Share document

# POST /open-apis/drive/v1/permissions/{token}/members
params = {'type': 'docx'}
json = {
    'member_type': 'email',
    'member_id': 'user@company.com',
    'perm': 'edit'
}
Note: Permission management is sensitive. Use with caution.

6. Cron Reminders

Create recurring scheduled reminders to Feishu chats.

Before Creating

Always confirm with the user:

  1. Frequency: How often? (e.g., every 10 min, every hour, daily at 9am)
  2. Target: Where to send? (default: current IM conversation)

Template

cron add \
  --name "<task_name>" \
  --every "<interval>" \
  --session main \
  --system-event "[CRON] <task_name>. Send message to Feishu: '<reminder_content>'"

Interval Examples

IntervalDescription
1mEvery minute
5mEvery 5 minutes
30mEvery 30 minutes
1hEvery hour
*/30 * * * *Cron expression (with --tz)

Management

cron list          # List all tasks
cron edit <id>     # Edit task
cron rm <id>       # Delete (ask user first!)
cron runs --id <id> # View execution history
cron run <id>      # Manual trigger

API Reference

APIMethodPath
Tenant TokenPOST/auth/v3/tenant_access_token/internal
Read DocumentGET/docx/v1/documents/{id}/raw_content
Create DocumentPOST/docx/v1/documents
Send MessagePOST/im/v1/messages
Upload FilePOST/im/v1/files
Upload ImagePOST/im/v1/images
List MessagesGET/im/v1/messages
Manage PermissionsPOST/drive/v1/permissions/{token}/members
Resolve WikiPOST/wiki/v2/spaces/get_node

Base URL: https://open.feishu.cn/open-apis


Notes

  • All APIs require tenant_access_token in the Authorization header
  • File upload uses multipart/form-data
  • Message sending uses application/json
  • Bot can only download files it uploaded itself
  • For detailed API docs, visit: https://open.feishu.cn/document

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

88%
按下载量换算37,197

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills