Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

feishu-lark-sheets-edit飞书百灵表编辑

Agent Skill

feishu-lark-sheets-edit 用于辅助部署、云资源、容器和基础设施运维,适合在 OpenClaw 中需要检查配置、整理部署步骤或排查环境问题时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

11,150

周安装

460

GitHub Stars

公开资料未说明

下载量

3,643
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install feishu-lark-sheets-edit

简介

读写、管理Lark/飞书表格(电子表格),通过Lark OpenAPI下载云文件。

  • 适合在 OpenClaw 中需要检查配置、整理部署步骤或排查环境问题时使用。
  • 需要飞书应用凭证(appId/appSecret)进行身份验证。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用于表格数据处理和云文件管理场景。

SKILL.md

name
feishu_lark_sheets_edit
description
Read, write and manage Lark/Feishu Sheets (spreadsheets) and download Lark/Feishu cloud files via Lark OpenAPI. Reads Feishu app credentials (appId/appSecret) from ~/.openclaw/openclaw.json to authenticate with the Lark OpenAPI. Use when a user provides a Lark/Feishu sheet link (URL path like /sheets/TOKEN) and you need to fetch cell values, write/update cells, add/clone sheet tabs, convert to CSV/JSON, or feed the data into summaries/reports/analysis. Also use when a user provides a Lark/Feishu file link (URL path like /file/TOKEN) and needs to download the file (PDF, etc.) locally. Triggers: 'feishu sheet', 'lark sheet', 'spreadsheet', 'write to sheet', 'update sheet', 'export sheet', 'feishu file', 'lark file', 'download file', 'feishu download', 'lark download', 'cloud file'.
user-invocable
true
metadata
{"clawdbot": {"requires": {"bins": ["python3"]}, "os": ["darwin", "linux", "win32"], "files": ["scripts/sheets_export.py", "scripts/sheets_write.py", "scripts/file_download.py"], "reads": ["~/.openclaw/openclaw.json"], "note": "Reads appId/appSecret from ~/.openclaw/openclaw.json to obtain Lark/Feishu API tokens. PDF extraction auto-installs pdfplumber/pypdf/pymupdf via pip as needed, no system dependencies required."}}

Lark/Feishu Sheets & Cloud File Download (with PDF extraction)

Read, write and manage Lark/Feishu Sheets, and download Lark/Feishu cloud files, by calling the official OpenAPI from local scripts.

Prerequisites

  • python3 on PATH
  • Feishu/Lark app credentials configured in ~/.openclaw/openclaw.json under channels.feishu:
  {
    "channels": {
      "feishu": {
        "appId": "cli_xxx",
        "appSecret": "xxx",
        "domain": "feishu"
      }
    }
  }
  • The Feishu/Lark app must have Sheets read & write permissions and Drive file download permissions enabled in the developer console.
  • The target spreadsheet/file must be shared with the app/bot identity.

Quick Start

Get spreadsheet token from the URL

Example URL: https://.../sheets/YOUR_SPREADSHEET_TOKEN?sheet=SHEET_ID

  • spreadsheet_token = YOUR_SPREADSHEET_TOKEN
  • sheet query param (often a sheetId) = SHEET_ID

Read / Export

# Export a single range to CSV
python3 {baseDir}/scripts/sheets_export.py \
  --token YOUR_SPREADSHEET_TOKEN \
  --range 'SHEET_ID!A1:Z200' \
  --csv /tmp/sheet.csv

# Or export to JSON (recommended for multi-range)
python3 {baseDir}/scripts/sheets_export.py \
  --url 'https://xxx.larksuite.com/sheets/YOUR_SPREADSHEET_TOKEN?sheet=SHEET_ID' \
  --range 'SHEET_ID!A1:Z200' \
  --json /tmp/sheet.json

Then load /tmp/sheet.csv or /tmp/sheet.json and continue with analysis/summarization.

Write / Update

# List all sheet tabs
python3 {baseDir}/scripts/sheets_write.py \
  --token YOUR_SPREADSHEET_TOKEN list-sheets

# Write values to a single range
python3 {baseDir}/scripts/sheets_write.py \
  --token YOUR_SPREADSHEET_TOKEN \
  write --range 'SheetId!A1:C2' --values '[["a","b","c"],["d","e","f"]]'

# Write values from a JSON file
python3 {baseDir}/scripts/sheets_write.py \
  --token YOUR_SPREADSHEET_TOKEN \
  write --range 'SheetId!A1:C2' --values-file /tmp/data.json

# Batch write multiple ranges at once
python3 {baseDir}/scripts/sheets_write.py \
  --token YOUR_SPREADSHEET_TOKEN \
  batch-write --batch '[{"range":"Sheet1!A1:B1","values":[["x","y"]]},{"range":"Sheet1!A2:B2","values":[["1","2"]]}]'

# Add a new sheet tab
python3 {baseDir}/scripts/sheets_write.py \
  --token YOUR_SPREADSHEET_TOKEN \
  add-sheet --title 'NewSheet'

# Clone an existing sheet's values into a new tab
python3 {baseDir}/scripts/sheets_write.py \
  --token YOUR_SPREADSHEET_TOKEN \
  clone-sheet --source-sheet-id abc123 --title 'ClonedSheet' --clone-range 'A1:Z200'

Using a URL instead of --token

Both scripts accept --url to auto-extract the spreadsheet token:

python3 {baseDir}/scripts/sheets_write.py \
  --url 'https://xxx.larksuite.com/sheets/YOUR_SPREADSHEET_TOKEN?sheet=SHEET_ID' \
  write --range 'SHEET_ID!A1:B1' --values '[["hello","world"]]'

File Download

Download cloud files (PDF, documents, etc.) from Lark/Feishu Drive.

Get file token from the URL

Example URL: https://.../file/YOUR_FILE_TOKEN

  • file_token = YOUR_FILE_TOKEN

Download a file

# Download by URL (PDF files auto-extract text to .txt)
python3 {baseDir}/scripts/file_download.py \
  --url "https://.../file/YOUR_FILE_TOKEN" \
  --out /tmp/report.pdf

# Download by file token directly
python3 {baseDir}/scripts/file_download.py \
  --file-token YOUR_FILE_TOKEN \
  --out /tmp/report.pdf

# Force text extraction for non-.pdf files
python3 {baseDir}/scripts/file_download.py \
  --file-token YOUR_FILE_TOKEN \
  --out /tmp/document.bin --extract-text

Reading downloaded PDF content

When --out ends with .pdf, the script automatically:

  1. Extracts text to a .txt file (e.g. /tmp/report.pdf/tmp/report.txt)
  2. Extracts embedded images to a _images/ directory (e.g. /tmp/report_images/img-000.png, ...)
  3. If text is garbled/unreadable, renders each page as a PNG image to _pages/ directory for visual reading

Text extraction priority: pdfplumberpypdfpdftotext (poppler). All Python packages are auto-installed via pip on first use. Includes garbled-text detection — if extracted text is unreadable (e.g. scanned PDF, special fonts), pages are rendered to images automatically.

Image extraction priority: pypdfpdfimages (poppler).

Page rendering (garbled fallback): pymupdfpdf2image.

The typical workflow is:

  1. Run the download script
  2. If text is readable → read /tmp/report.txt with the Read tool
  3. If text is garbled → read page images in /tmp/report_pages/ with the Read tool (AI vision)
  4. Read embedded images in /tmp/report_images/ for charts, diagrams, etc.
  5. Summarize / analyze the content

For non-PDF files, use --extract-text to force extraction.


Write Subcommands Reference

SubcommandDescriptionKey flags
list-sheetsList all sheet tabs (id, title, index)
writeWrite values to a single range--range, --values or --values-file
batch-writeWrite values to multiple ranges in one call--batch or --batch-file
add-sheetCreate a new empty sheet tab--title
clone-sheetClone values from an existing sheet to a new tab--source-sheet-id, --title, --clone-range

All subcommands support --dry-run to preview without executing.


Notes / Gotchas

  • Range format: the API accepts "{sheetId}!A1:Z200" or "{sheetTitle}!A1:Z200".

- If you don't know the sheet title, use list-sheets first, or start with the sheet= value from the URL.

  • Large sheets: export only the needed columns/rows first; widen the range iteratively.
  • Values format: must be a JSON array of arrays (rows x columns), e.g. [["a","b"],["c","d"]].
  • Secrets: the script reads appId/appSecret from ~/.openclaw/openclaw.json. Do not print or paste those credentials into chat.

Troubleshooting

  • 403 / permission errors:

- Confirm the sheet/file has been shared with the app/bot identity. - Confirm the Lark/Feishu app has the required permissions (Sheets read & write, Drive file download) enabled in the developer console.

  • values_batch_get failed / values_batch_update failed with non-zero code:

- Most often a bad range string. Try a smaller range or verify the sheetId/title via list-sheets.

  • addSheet failed:

- The title may already exist. Sheet titles must be unique within a spreadsheet.


External Endpoints

This skill makes outbound requests to the following Lark/Feishu OpenAPI endpoints only:

URLPurpose
https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internalObtain tenant access token
https://open.feishu.cn/open-apis/sheets/v3/spreadsheets/*/sheets/queryList sheet tabs
https://open.feishu.cn/open-apis/sheets/v2/spreadsheets/*/values_batch_getRead cell values
https://open.feishu.cn/open-apis/sheets/v2/spreadsheets/*/values_batch_updateWrite cell values
https://open.feishu.cn/open-apis/sheets/v2/spreadsheets/*/sheets_batch_updateAdd/manage sheet tabs
https://open.feishu.cn/open-apis/drive/v1/files/*/downloadDownload file content

For Lark (international) users, the base URL is https://open.larksuite.com instead.


Security & Privacy

  • Credentials are local. appId/appSecret are read from ~/.openclaw/openclaw.json and only sent to the official Feishu/Lark OpenAPI for token exchange.
  • No data leaves the Feishu ecosystem. All read/write operations go through the official Lark OpenAPI.
  • Scripts are sandboxed. They only access the OpenClaw config file and the target spreadsheet. No other files or environment variables are read.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

78.36%
按下载量换算2,855

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills