360 Secure SkillHub
360 安全技能中心

Find File

该 Skill 通过 Python 脚本在桌面、文档、下载等常见目录中按文件名(glob 模式)或文件内容搜索文件与文件夹,可将结果复制到桌面的档案接收柜并自动在文件资源管理器中打开;在 LINE 场景下可直接输出文件本地路径由 OpenClaw 桥上传,或按已配置的 API 调用脚本发送。

kevinchai3868
kevinchai3868
热度 77.93
最近更新 2026-05-20 03:27:29
分类:搜索依赖:代码执行 / 读写文件 / 第三方 API应用场景:工作流 / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add find-file
Metadata
name
File Finder & Sender
description
Searches for local files and folders based on keywords, extensions, or descriptions, and can "send" them by copying to a designated reception folder.

File Finder & Sender Skill

This skill empowers the AI to locate specific files or folders on the local system and "send" them to the user. It is particularly useful when the user remembers a partial filename or needs files related to a specific topic.

Capabilities

  • Search by Name: Finds files or folders matching a glob pattern (e.g., *.pdf, report*).
  • Search by Content: Can search for specific text inside files using the --content flag.
  • Location Awareness: Scans common directories like Desktop, Documents, and Downloads.
  • File Transfer: "Sends" a file by copying it to the 檔案接收櫃 (File Reception Cabinet) folder on your Desktop.
  • Auto-Reveal: Automatically opens the destination folder in File Explorer.
  • LINE Integration: Can be configured to send files directly to your LINE chat through the OpenClaw bridge.

Usage

When a user asks to find or send a file:

  1. Analyze Request: Determine the target file.
  2. Search: Run scripts/find_files.py.
  3. Send to LINE:
    • If the user is chatting via LINE, simply output the full local path of the file in your response. OpenClaw's bridge will automatically detect the file and upload it as an attachment.
    • Example response: 找到囉!我正透過 LINE 傳送檔案給您:c:\path\to\file.pdf
    • Alternatively, use scripts/send_line.py if manual API calls are configured.

Safety Precautions

  • Do not access system directories (e.g., C:\Windows) unless requested.
  • Verify file sizes (<50MB recommended for LINE transfer).
  • Inform the user that files are being COPIED/UPLOADED.