Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

feishu-api-lookupfeishu API lookup 搜索

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

12,430

周安装

498

GitHub Stars

公开资料未说明

下载量

4,024
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install feishu-api-lookup

简介

feishu-api-lookup 用于查阅飞书开放平台 API 文档,支持参数与响应查询。

  • 适合在 OpenClaw 中编写脚本或了解特定 API 行为的场景。
  • 通过 clawhub 安装,命令为 openclaw skills install feishu-api-lookup。
  • 建议安装前确认权限范围、维护状态及是否涉及网络请求。
  • 可结合来源仓库和原始文档核验支持的 API 覆盖范围与更新频率。

SKILL.md

name
feishu-api-lookup
description
|

Feishu API Lookup

Query Feishu Open Platform API documentation on demand. Since the Feishu docs site is a SPA that can't be statically scraped, this skill uses web search + page fetch to find API docs in real-time.

When to Use

  • Need to find a Feishu API endpoint (e.g., "how to forward a thread")
  • Need to understand API parameters, request/response format
  • Writing a Python/Node script that calls Feishu APIs
  • Troubleshooting Feishu API error codes
  • The built-in OpenClaw feishu plugin doesn't support the needed operation

How to Look Up

Step 1: Search for the API

Use web_search with targeted queries:

web_search("飞书 open API {你要找的功能} site:open.feishu.cn")

Search tips:

  • Use Chinese keywords for better results: "发送消息", "转发话题", "合并转发", "创建文档", "多维表格"
  • Add site:open.feishu.cn to limit to official docs
  • Add POST /im/v1/ or similar path patterns if you know the API domain
  • Alternative: search site:feishu.apifox.cn for the Apifox mirror (sometimes more accessible)

Common API domains:

DomainPath prefixDescription
消息 (IM)/im/v1/Messages, threads, reactions, pins
通讯录/contact/v3/Users, departments, groups
云文档/drive/v1/, /docx/v1/Docs, sheets, files
多维表格/bitable/v1/Bitable (multidimensional tables)
知识库/wiki/v2/Wiki spaces, nodes
日历/calendar/v4/Calendars, events
审批/approval/v4/Approvals
任务/task/v2/Tasks
群组/im/v1/chats/Chat groups
权限/drive/v1/permissions/File permissions
应用/application/v6/App management

Step 2: Fetch the API doc page

Use web_fetch to get the doc content:

web_fetch("https://open.feishu.cn/document/server-docs/im-v1/message/create", maxChars=15000)

⚠️ The official docs site is SPA-rendered — web_fetch may return empty content.

Fallbacks when web_fetch fails:

  1. Try the Apifox mirror: https://feishu.apifox.cn (search for the API there)
  2. Search for the Chinese doc URL pattern: https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/...
  3. Use web_search with more specific queries to find the exact parameters

Step 3: Extract key information

From the doc, extract:

  • HTTP Method + URL: e.g., POST /open-apis/im/v1/messages/{message_id}/forward
  • Headers: Usually Authorization: Bearer {tenant_access_token} + Content-Type: application/json
  • Path params: Variables in the URL
  • Query params: Required/optional query parameters
  • Request body: JSON structure with field types and descriptions
  • Response body: Expected response format
  • Error codes: Common errors and fixes
  • Required permissions: Which scopes are needed

Authentication

Almost all Feishu APIs need a tenant_access_token. Get it from:

import json, urllib.request

with open('/root/.openclaw/openclaw.json') as f:
    cfg = json.load(f)
app_id = cfg['channels']['feishu']['appId']
app_secret = cfg['channels']['feishu']['appSecret']

req = urllib.request.Request(
    'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal',
    data=json.dumps({"app_id": app_id, "app_secret": app_secret}).encode(),
    headers={"Content-Type": "application/json"}
)
token = json.loads(urllib.request.urlopen(req).read())['tenant_access_token']

Common Patterns

Send a request to Feishu API

req = urllib.request.Request(
    f'https://open.feishu.cn/open-apis/{api_path}',
    data=json.dumps(body).encode(),
    headers={
        "Content-Type": "application/json",
        "Authorization": f"Bearer {token}"
    }
)
try:
    resp = json.loads(urllib.request.urlopen(req).read())
except urllib.error.HTTPError as e:
    resp = json.loads(e.read().decode())

Pagination pattern

Many list APIs use cursor-based pagination:

page_token = None
all_items = []
while True:
    url = f'https://open.feishu.cn/open-apis/{path}?page_size=50'
    if page_token:
        url += f'&page_token={page_token}'
    resp = fetch(url)
    all_items.extend(resp['data']['items'])
    if not resp['data'].get('has_more'):
        break
    page_token = resp['data']['page_token']

Frequently Used APIs (Quick Reference)

Messages (IM)

ActionMethodPath
Send messagePOST/im/v1/messages?receive_id_type={type}
Reply to messagePOST/im/v1/messages/{message_id}/reply
Forward messagePOST/im/v1/messages/{message_id}/forward?receive_id_type={type}
Merge forwardPOST/im/v1/messages/merge_forward?receive_id_type={type}
Forward threadPOST/im/v1/threads/{thread_id}/forward?receive_id_type={type}
Get messageGET/im/v1/messages/{message_id}
List messagesGET/im/v1/messages?container_id_type=chat&container_id={id}
Delete messageDELETE/im/v1/messages/{message_id}
Update messagePATCH/im/v1/messages/{message_id}
Add reactionPOST/im/v1/messages/{message_id}/reactions
Get message fileGET/im/v1/messages/{message_id}/resources/{file_key}?type={type}

Groups (Chat)

ActionMethodPath
Create groupPOST/im/v1/chats
Get group infoGET/im/v1/chats/{chat_id}
List membersGET/im/v1/chats/{chat_id}/members
Add membersPOST/im/v1/chats/{chat_id}/members

Docs

ActionMethodPath
Create documentPOST/docx/v1/documents
Get document contentGET/docx/v1/documents/{document_id}/raw_content
List blocksGET/docx/v1/documents/{document_id}/blocks
Create blockPOST/docx/v1/documents/{document_id}/blocks/{block_id}/children
Update blockPATCH/docx/v1/documents/{document_id}/blocks/{block_id}
Delete blockDELETE/docx/v1/documents/{document_id}/blocks/{block_id}/children/batch_delete

Drive

ActionMethodPath
Upload filePOST/drive/v1/medias/upload_all
List folderGET/drive/v1/files?folder_token={token}
Get file infoGET/drive/v1/metas/batch_query
Move filePOST/drive/v1/files/{file_token}/move

Bitable

ActionMethodPath
List recordsGET/bitable/v1/apps/{app_token}/tables/{table_id}/records
Create recordPOST/bitable/v1/apps/{app_token}/tables/{table_id}/records
Update recordPUT/bitable/v1/apps/{app_token}/tables/{table_id}/records/{record_id}
List fieldsGET/bitable/v1/apps/{app_token}/tables/{table_id}/fields
Search recordsPOST/bitable/v1/apps/{app_token}/tables/{table_id}/records/search

Wiki

ActionMethodPath
List spacesGET/wiki/v2/spaces
Get nodeGET/wiki/v2/spaces/get_node?token={token}
List nodesGET/wiki/v2/spaces/{space_id}/nodes
Create nodePOST/wiki/v2/spaces/{space_id}/nodes

Permissions

ActionMethodPath
List permissionsGET/drive/v1/permissions/{token}/members?type={type}
Add permissionPOST/drive/v1/permissions/{token}/members?type={type}
Remove permissionDELETE/drive/v1/permissions/{token}/members/{member_id}?type={type}

Error Handling

Common error codes:

  • 99991663 — Invalid tenant_access_token (expired or wrong)
  • 99991668 — Invalid user_access_token
  • 230001 — Invalid request parameter
  • 230002 — Bot not in group
  • 230013 — User not in bot's availability scope
  • 230020 — Rate limit exceeded
  • 230027 — Insufficient permissions

Tips

  1. Always use the /open-apis/ prefix in the full URL: https://open.feishu.cn/open-apis/im/v1/messages
  2. Token expires in 2 hours — cache it but refresh before expiry
  3. receive_id_type mattersopen_id for users, chat_id for groups, union_id for cross-app
  4. File uploads use multipart/form-data, not JSON
  5. Feishu vs Lark — same API, different domain (open.feishu.cn vs open.larksuite.com)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

71.08%
按下载量换算2,860

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills