闲社服务运行正常AI智能体自动化平台
f

文件浏览器

技能标识:file-browser

Read-only file browsing and reading in the OpenClaw workspace (/home/alfred/.openclaw/workspace). Use for listing directories or reading text files (up to 10k chars). Triggers on queries like "list files in [dir]", "read file [path]", "browse workspace [path]". Restrict to relative paths; reject absolutes or ../ escapes. NOT for writing, deleting, executing, or non-workspace access.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

文件浏览器

文件浏览器技能

快速开始

所有路径均相对于 WORKSPACE=/home/alfred/.openclaw/workspace 进行解析。对输入进行清理以防止路径逃逸或绝对路径。
  • - 列出目录:exec(scripts/listfiles.sh, [relpath]) → JSON {success: bool, data: array of names, error: string}
  • 读取文件:exec(scripts/readfile.sh, [relpath]) → JSON {success: bool, data: string (文本内容), error: string}
  • 错误处理:对于二进制/大文件/非文本文件,返回错误JSON。

分步工作流程

  1. 1. 解析用户查询以获取操作(列出/读取)和相对路径。
  2. 使用清理后的rel_path调用相应脚本。
  3. 解析JSON输出;向用户返回结果或错误信息。
  4. 如果路径无效或超出工作区范围,立即拒绝。

安全指南

  • - 强制只读:禁止写入、删除或执行脚本以外的操作。
  • 如果启用详细模式,记录访问日志。
  • 对于大文件(超过10k字符),进行截断或摘要处理。

边界情况

  • - 空路径:默认为.(工作区根目录)。
  • 二进制文件:返回错误非文本文件。
  • 更多内容请参见 references/examples.md(如果已添加)。

捆绑资源

  • - scripts/listfiles.sh:ls的Bash封装。
  • scripts/readfile.sh:带限制的cat的Bash封装。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 file-browser-1776164790 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 file-browser-1776164790 技能

通过命令行安装

skillhub install file-browser-1776164790

下载

⬇ 下载 file-browser v1.0.0(免费)

文件大小: 2.29 KB | 发布时间: 2026-4-15 13:04

v1.0.0 最新 2026-4-15 13:04
Version 1.0.0

- Major update: Introduces a new read-only file browsing skill for the OpenClaw workspace.
- Adds scripts for listing directories and reading text files within the workspace.
- Skill description and usage instructions now reflect security restrictions and available actions.
- Old SKILL.md and broader file management functionality removed; focus narrowed to basic browse and read operations only.
返回顶部