360 Secure SkillHub
360 安全技能中心

feishuFindDoc

通过 Node 命令行连接飞书接口,在指定聊天历史中按文件名查找目标文件并保存到本地,可设置输出目录和回溯小时数;需配置飞书应用凭据。

josephyb97
josephyb97
热度 86.50
最近更新 2026-05-17 12:49:32
分类:协作依赖:代码执行 / 第三方 API / 读写文件应用场景:工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add feishu-doc-finder
Metadata
name
feishu-file-finder
description
Find and download files from Feishu chat history by filename.
version
1.0.0

Feishu File Finder

A utility skill to search for a file in a Feishu chat (by filename) and download it. Useful when OpenClaw's auto-download misses a file or for retrieving past files.

Prerequisites

  • FEISHU_APP_ID and FEISHU_APP_SECRET must be set in environment.

Usage

cd skills/feishu-file-finder
npm install

# Basic usage
node index.js --chat <chat_id> --file <filename>

# Options
# -o, --output <dir>   Save path (default: current dir)
# -h, --hours <num>    Search history lookback (default: 24h)

Example

export FEISHU_APP_ID=...
export FEISHU_APP_SECRET=...

node index.js --chat oc_87435... --file travel-planner.zip