π¦ ClawHub
file-browser
by @nagilem
Read-only file browsing and reading in the OpenClaw workspace (/home/alfred/.openclaw/workspace). Use for listing directories or reading text files (up to 10...
TERMINAL
clawhub install file-browserπ About This Skill
name: file-browser description: 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.
File Browser Skill
Quick Start
Resolve all paths relative to WORKSPACE=/home/alfred/.openclaw/workspace. Sanitize inputs to prevent escapes or absolutes.Step-by-Step Workflow
1. Parse user query for action (list/read) and relative path. 2. Call appropriate script with sanitized rel_path. 3. Parse JSON output; respond to user with results or error message. 4. If path invalid or outside workspace, reject immediately.Safety Guidelines
Edge Cases
Bundled Resources
π‘ Examples
Resolve all paths relative to WORKSPACE=/home/alfred/.openclaw/workspace. Sanitize inputs to prevent escapes or absolutes.