Feishu Bitable API
飞书多维表格(Bitable)API技能。用于创建、读取、更新和删除飞书多维表格的数据表、记录和字段。
New
Join 0+ developers using this skill
skill
Integrations
intermediate
飞书多维表格(Bitable)API技能。用于创建、读取、更新和删除飞书多维表格的数据表、记录和字段。
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
用于操作飞书多维表格的完整技能,支持数据表、记录和字段的CRUD操作。
# 飞书应用ID export FEISHU_APP_ID=cli_xxxxxx飞书应用密钥(或密钥文件路径)
export FEISHU_APP_SECRET=your_app_secret
或
export FEISHU_APP_SECRET_PATH=~/.clawdbot/secrets/feishu_app_secret
cd skills/feishu-bitable npm install
export FEISHU_APP_ID=cli_xxxxxx export FEISHU_APP_SECRET=your_app_secret
# 获取帮助 node bitable-cli.js --help列出所有数据表
node bitable-cli.js list-tables --app-token basxxxxxx
创建新记录
node bitable-cli.js create-record --app-token basxxxxxx --table-id tblxxxxxx --data '{"字段1": "值1", "字段2": "值2"}'
查询记录
node bitable-cli.js list-records --app-token basxxxxxx --table-id tblxxxxxx
GET /bitable/v1/apps/{app_token}/tables - 获取数据表列表POST /bitable/v1/apps/{app_token}/tables - 创建数据表GET /bitable/v1/apps/{app_token}/tables/{table_id} - 获取数据表详情DELETE /bitable/v1/apps/{app_token}/tables/{table_id} - 删除数据表POST /bitable/v1/apps/{app_token}/tables/{table_id}/records - 新增记录GET /bitable/v1/apps/{app_token}/tables/{table_id}/records - 获取记录列表PUT /bitable/v1/apps/{app_token}/tables/{table_id}/records/{record_id} - 更新记录DELETE /bitable/v1/apps/{app_token}/tables/{table_id}/records/{record_id} - 删除记录POST /bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_create - 批量新增记录POST /bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_update - 批量更新记录POST /bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_delete - 批量删除记录GET /bitable/v1/apps/{app_token}/tables/{table_id}/fields - 获取字段列表POST /bitable/v1/apps/{app_token}/tables/{table_id}/fields - 创建字段PUT /bitable/v1/apps/{app_token}/tables/{table_id}/fields/{field_id} - 更新字段GET /bitable/v1/apps/{app_token}/tables/{table_id}/views - 获取视图列表GET /bitable/v1/apps/{app_token}/tables/{table_id}/views/{view_id} - 获取视图详情node bitable-cli.js create-table \ --app-token basxxxxxx \ --name "任务管理" \ --fields '[{"field_name": "任务名称", "type": "text"}, {"field_name": "状态", "type": "select", "property": {"options": [{"name": "待办"}, {"name": "进行中"}, {"name": "已完成"}]}}]'
node bitable-cli.js create-record \ --app-token basxxxxxx \ --table-id tblxxxxxx \ --data '{"任务名称": "完成API开发", "状态": "进行中", "优先级": "高", "截止日期": "2024-12-31"}'
node bitable-cli.js list-records \ --app-token basxxxxxx \ --table-id tblxxxxxx \ --filter '{"conjunction": "and", "conditions": [{"field_name": "状态", "operator": "is", "value": ["进行中"]}]}' \ --sort '["-创建时间"]' \ --page-size 50
node bitable-cli.js batch-create \ --app-token basxxxxxx \ --table-id tblxxxxxx \ --data-file records.json
飞书多维表格支持以下字段类型:
text - 文本number - 数字single_select - 单选multi_select - 多选date - 日期person - 人员checkbox - 复选框url - 链接phone - 电话email - 邮箱attachment - 附件formula - 公式created_time - 创建时间modified_time - 修改时间created_by - 创建人modified_by - 修改人技能包含完整的错误处理机制:
bitable:record:readonly和bitable:record:write权限skills/feishu-bitable 目录用户: "帮我在飞书多维表格中添加一个任务" Clawdbot:
# 使用技能添加任务 node skills/feishu-bitable/bin/cli.js create-record \ --app-token basxxxxxx \ --table-id tblxxxxxx \ --data '{"任务名称": "新任务", "状态": "待办", "优先级": "中"}'
你可以创建自动化工作流,例如:
如需扩展功能,请参考:
src/api.js - API客户端src/cli.js - 命令行接口src/utils.js - 工具函数src/api.js 的 FeishuBitableAPI 类中添加新方法bin/cli.js 中添加对应的命令try-catch 包装所有API调用No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.