搜索

PythonReactSEOPDF
OpenClaw

feishu-docx

飞书云文档(docx)的创建与编辑技能。支持通过 API 创建文档、追加内容、批量更新块等操作。使用此技能需要提供 App ID 和 App Secret。

cpjhy0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install cpjhy/feishu-docx

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Feishu Docx Skill

本技能封装了飞书云文档(docx)API 的核心操作,允许老大快速对飞书文档进行读写操作。

认证信息

使用该技能前,需确保已设置以下环境变量或在代码中显式传入:

  • FEISHU_APP_ID: cli_a92c5076b7789cd2
  • FEISHU_APP_SECRET: 9jPdCn49G54RFoEoDPUCVcptnWZnTZqp

核心工作流

  1. 获取访问令牌: 使用 tenant_access_token 进行应用级别的认证。
  2. 创建文档: 调用 POST /open-apis/docx/v1/documents 创建一个空的或指定标题的文档。
  3. 写入/编辑内容:
    • 追加块:POST /open-apis/docx/v1/documents/{document_id}/blocks/{block_id}/children
    • 批量更新:POST /open-apis/docx/v1/documents/{document_id}/blocks/batch_update

使用示例 (Python)

from scripts.feishu_docx_client import FeishuDocx

client = FeishuDocx(app_id="cli_a92c5076b7789cd2", app_secret="9jPdCn49G54RFoEoDPUCVcptnWZnTZqp")

# 1. 创建文档
doc_id = client.create_document("测试文档")

# 2. 追加文本
client.append_text(doc_id, "这是由 OpenClaw 写入的内容。")

资源

  • 客户端脚本: scripts/feishu_docx_client.py 封装了常用的 API 调用。
  • 参考文档: 请参考 REFERENCES.md 了解更多 Block 类型和 API 细节。

来源信息

Source
github
Repository
openclaw/skills
Path
skills/cpjhy/feishu-docx
Version
—
Commit
667661ebcaa7c4c9442012af2484f5e873290317
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Feishu Docx Skill

本技能封装了飞书云文档(docx)API 的核心操作,允许老大快速对飞书文档进行读写操作。

## 认证信息

使用该技能前,需确保已设置以下环境变量或在代码中显式传入:
- `FEISHU_APP_ID`: cli_a92c5076b7789cd2
- `FEISHU_APP_SECRET`: 9jPdCn49G54RFoEoDPUCVcptnWZnTZqp

## 核心工作流

1. **获取访问令牌**: 使用 `tenant_access_token` 进行应用级别的认证。
2. **创建文档**: 调用 `POST /open-apis/docx/v1/documents` 创建一个空的或指定标题的文档。
3. **写入/编辑内容**:
    - 追加块:`POST /open-apis/docx/v1/documents/{document_id}/blocks/{block_id}/children`
    - 批量更新:`POST /open-apis/docx/v1/documents/{document_id}/blocks/batch_update`

## 使用示例 (Python)

```python
from scripts.feishu_docx_client import FeishuDocx

client = FeishuDocx(app_id="cli_a92c5076b7789cd2", app_secret="9jPdCn49G54RFoEoDPUCVcptnWZnTZqp")

# 1. 创建文档
doc_id = client.create_document("测试文档")

# 2. 追加文本
client.append_text(doc_id, "这是由 OpenClaw 写入的内容。")
```

## 资源

- **客户端脚本**: `scripts/feishu_docx_client.py` 封装了常用的 API 调用。
- **参考文档**: 请参考 [REFERENCES.md](references/api_reference.md) 了解更多 Block 类型和 API 细节。

相关技能

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

claw

capevace

Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.