๐ฆ ClawHub
Boxed fs
by @guyoung
WebAssembly sandboxed file system operations for secure file read/write within explicitly declared directories. Use when needing to read, write, append, copy...
๐ก Examples
// 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"]
})
TERMINAL
clawhub install boxed-fs