/install file-browser
File Browser Skill
Quick Start
Resolve all paths relative to WORKSPACE=/home/alfred/.openclaw/workspace. Sanitize inputs to prevent escapes or absolutes.
- To list directory: exec("scripts/list_files.sh", [rel_path]) → JSON {success: bool, data: array of names, error: string}
- To read file: exec("scripts/read_file.sh", [rel_path]) → JSON {success: bool, data: string (text content), error: string}
- Handle errors: For binary/large/non-text files, return error JSON.
Step-by-Step Workflow
- Parse user query for action (list/read) and relative path.
- Call appropriate script with sanitized rel_path.
- Parse JSON output; respond to user with results or error message.
- If path invalid or outside workspace, reject immediately.
Safety Guidelines
- Enforce read-only: No writes, deletes, or exec beyond scripts.
- Log accesses if verbose mode enabled.
- For large files (>10k chars), truncate or summarize.
Edge Cases
- Empty path: Default to "." (workspace root).
- Binary file: Return error "Non-text file".
- See references/examples.md for more (if added).
Bundled Resources
- scripts/list_files.sh: Bash wrapper for ls.
- scripts/read_file.sh: Bash wrapper for cat with limits.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install file-browser - After installation, invoke the skill by name or use
/file-browser - Provide required inputs per the skill's parameter spec and get structured output
What is 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 10... It is an AI Agent Skill for Claude Code / OpenClaw, with 1413 downloads so far.
How do I install file-browser?
Run "/install file-browser" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is file-browser free?
Yes, file-browser is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does file-browser support?
file-browser is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created file-browser?
It is built and maintained by Nagilem (@nagilem); the current version is v1.0.0.