360 Secure SkillHub
360 安全技能中心

Boxed fs

该 Skill 通过 WASM 沙箱组件在显式声明的目录内执行文件操作,支持读取、写入、追加、复制、删除、创建目录和列目录;首次使用需下载组件,之后通过宿主提供的沙箱运行工具调用。

guyoung
guyoung
热度 39.61
最近更新 2026-05-11 17:41:37
分类:效率依赖:MCP 服务 / 读写文件应用场景:工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add boxed-fs
Metadata
name
boxed-fs
description
WebAssembly sandboxed file system operations for secure file read/write within explicitly declared directories. Use when needing to read, write, append, copy, remove, or list files in a controlled sandbox environment.

boxed-fs

WebAssembly sandboxed file system operations. All file operations run inside a WASM sandbox with access control.

Quick Start

// Download wasm first (one-time)
wasm-sandbox-download({
  url: "https://raw.githubusercontent.com/guyoung/wasm-sandbox-openclaw-skills/main/boxed-fs/files/boxed-fs-component.wasm",
  dest: "~/.openclaw/skills/boxed-fs/files/boxed-fs-component.wasm"
})

// List files
wasm-sandbox-run({
  wasmFile: "~/.openclaw/skills/boxed-fs/files/boxed-fs-component.wasm",
  workDir: "~/.openclaw/workspace",
  args: ["list-dir", "--path", "."]
})

// Read file
wasm-sandbox-run({
  wasmFile: "~/.openclaw/skills/boxed-fs/files/boxed-fs-component.wasm",
  workDir: "~/.openclaw/workspace",
  args: ["read-file", "--path", "example.txt"]
})

Supported Operations

  • read-file - Read file contents
  • write-file - Write file contents atomically
  • append-file - Append data to a file
  • open-file - Open a file for reading
  • open-writable-file - Open a file for writing
  • copy-file - Copy a file within root
  • remove-path - Remove a file or directory
  • mkdir-path - Create a directory path
  • list-dir - List files and directories under a path

Trigger When

boxed-fs triggers when the user asks to read, write, append, copy, remove, list, or otherwise manipulate files in a sandboxed environment, or when explicitly requested to use boxed-fs.

boxed-fs 在用户要求在沙箱环境中读取、写入、追加、复制、删除、列出或以其他方式操作文件时触发,或在明确请求使用 boxed-fs 时触发。

Usage Reference

See USAGE.md for detailed command usage and examples.