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

feishu-bitable-attachment飞鼠咬合附件

Agent Skill

feishu-bitable-attachment 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,158

周安装

129

GitHub Stars

1

下载量

1,022
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install feishu-bitable-attachment

简介

通过素材上传流程将文件从 local/url/feishu-message 上传到任何可访问的 feishu bitable 附件字段 (parent_type=bitable_file)

SKILL.md

name
feishu-bitable-attachment
description
uploads files from local/url/feishu-message to any accessible feishu bitable attachment field via material upload flow (parent_type=bitable_file)

Overview

This skill uploads files to Feishu (Lark) Bitable attachment fields through the material upload flow:

  1. Get source file (local copy, URL download, or Feishu message download)
  2. Upload to Bitable upload endpoint with parent_type=bitable_file
  3. Get file_token from upload response
  4. Create/Update record with attachment field

Key design: This is a general-purpose skill for ANY Bitable your app can access. Nothing is hardcoded.

Verification Status

Local Tests Passed

  • [x] All Python modules pass syntax check (py_compile)
  • [x] All custom exception classes are properly imported
  • [x] File not found raises SkillFileNotFoundError (not NameError)
  • [x] Input validation raises SkillInputError for missing parameters
  • [x] All payload example files are valid JSON
  • [x] main.py --help runs successfully

Requires Real Environment Verification

  • [ ] Bitable record update/create response format
  • [ ] Table/field listing API response structure
  • [ ] Record search API filter syntax

If any API calls fail in your environment, check references/feishu-api-notes.md for extensibility points.

Supported Source Types

TypeDescriptionExample
localLocal file path{"type": "local", "ref": "/tmp/file.pdf"}
urlDownload from HTTP(S) URL{"type": "url", "ref": "https://example.com/file.pdf"}
feishu_messageFeishu message attachment{"type": "feishu_message", "ref": {"file_key": "file_xxx"}}

Target Resolution

This skill supports flexible target specification to work with any Bitable:

Table Specification (priority: table_id > table_name)

  • Provide table_id directly for fastest resolution
  • Or provide table_name for automatic lookup (lists all tables and matches by name)

Field Specification (priority: field_id > field_name)

  • Provide field_id directly for fastest resolution
  • Or provide field_name for automatic lookup (lists all fields and matches by name)

Record Specification

  • Provide record_id to update existing record
  • Or provide lookup to search for record by field value
  • Or omit both to create new record

Input JSON Structure

{
  "target": {
    "app_token": "bascxxxxxxxxxxxxx",
    "table_id": "tblxxxxxxxxxx",
    "table_name": "",
    "record_id": "recxxxxxxxxxx",
    "field_id": "fldxxxxxxxxxx",
    "field_name": "附件",
    "lookup": {
      "field_name": "合同编号",
      "field_id": "",
      "value": "HT-2026-001"
    },
    "allow_create_if_lookup_missing": false
  },
  "source": {
    "type": "local",
    "ref": "/path/to/file.pdf"
  },
  "append": true
}

Target Parameters

ParameterRequiredDescription
app_tokenYesBitable app token (basc...)
table_idNo*Table ID (tbl...). *Required if table_name not provided
table_nameNo*Table display name. *Required if table_id not provided
record_idNoRecord ID (rec...). Leave empty to create new record
field_idNo*Field ID. *Required if field_name not provided
field_nameNo*Field display name. *Required if field_id not provided
lookupNoConfig to find record_id by searching
allow_create_if_lookup_missingNoIf true, create new record when lookup finds nothing

Lookup Config

"lookup": {
  "field_name": "合同编号",
  "field_id": "",
  "value": "HT-2026-001"
}

Source Parameters

ParameterRequiredDescription
typeYesOne of: local, url, feishu_message
refYeslocal: file path / url: download URL / feishu_message: {file_key, filename}

Append Mode

ValueBehavior
trueRead existing attachments, append new file to the list
falseReplace attachment field with new file only

Upload Flow

Small Files (≤20MB)

Direct upload to material endpoint:

POST /open-apis/drive/v1/upload
multipart/form-data fields:
  - file: <file content>
  - file_name: filename
  - size: file size in bytes
  - parent_type: bitable_file
  - parent_node: {app_token}
  - extra: {"drive_route_token": "{app_token}"}

Large Files (>20MB)

Chunked upload in 5MB parts:

  1. POST /open-apis/drive/v1/chunked_upload/prepare → upload_id
  2. POST /open-apis/drive/v1/chunked_upload (per part) → etag
  3. POST /open-apis/drive/v1/chunked_upload/finish → file_token

Environment Variables

Set these before running:

export FEISHU_APP_ID=your_app_id
export FEISHU_APP_SECRET=your_app_secret
export FEISHU_BASE_URL=https://open.feishu.cn  # optional

Usage Examples

Local file with known record_id

python scripts/main.py --input payload.local.json

URL download with replace mode

python scripts/main.py --input payload.url.json

Feishu message attachment

python scripts/main.py --input payload.feishu_message.json

Auto-resolve table by name

python scripts/main.py --input payload.table_name.json

Lookup record by field value

python scripts/main.py --input payload.lookup.json

Create new record with attachment

python scripts/main.py --input payload.create_record.json

Basic Verification

Run syntax check before use:

python -m py_compile scripts/*.py

This verifies:

  • All Python modules have valid syntax
  • No undefined variables or imports

Output

Success

{
  "ok": true,
  "file_token": "vobxxxxxxxxxx",
  "app_token": "bascxxxxxxxxxx",
  "table_id": "tblxxxxxxxxxx",
  "table_name": "合同归档",
  "record_id": "recxxxxxxxxxx",
  "field_name": "附件",
  "field_id": "fldxxxxxxxxxx",
  "upload_type": "direct",
  "attachment_count": 3,
  "mode": "append",
  "message": "Successfully uploaded 'report.pdf'..."
}

Error

{
  "ok": false,
  "error": "Table 'xxx' not found. Available tables: 表 1, 表 2",
  "error_type": "resolve_error"
}

Common Errors

Error TypeCauseSolution
file_not_foundLocal file does not existCheck file path
download_failedURL download failedVerify URL accessibility
input_errorInvalid parametersCheck input JSON structure
auth_errorInvalid credentialsCheck FEISHU_APP_ID/SECRET
upload_errorUpload failedCheck app permissions
resolve_errorTable/field/record not foundVerify names or IDs
update_errorRecord update failedCheck record exists

Why This Skill Works with Any Bitable

This skill is not hardcoded to a specific Bitable:

  1. Dynamic app_token: Read from input, not hardcoded
  2. Dynamic table resolution: Supports table_id (direct) or table_name (API lookup)
  3. Dynamic field resolution: Supports field_id (direct) or field_name (API lookup)
  4. Dynamic record resolution: Supports record_id, lookup search, or create-new mode

References

See references/feishu-api-notes.md for:

  • Why file_token from IM/Drive cannot be reused directly
  • Why upload to bitable_file upload point is required
  • API implementation notes and extensibility points
  • Known uncertainties that may need environment-specific verification

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

76.79%
按下载量换算785

安全审计

VirusTotal

未展示

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills