WebAssembly sandboxed file system operations. All file operations run inside a WASM sandbox with access control.
// 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"]
})
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 时触发。
See USAGE.md for detailed command usage and examples.
共 1 个版本