Skip to content

Workspace Files

Verified

Work safely with files inside the OpenClaw workspace sandbox. Use for listing directories, reading text files, writing text files, and searching files by nam...

83 downloads
$ Add to .claude/skills/

About This Skill

# Workspace Files

Safe file operations limited to the OpenClaw workspace sandbox.

Sandbox

All paths must stay inside:

/home/cmart/.openclaw/workspace

Do not use this skill for paths outside that sandbox.

Quick Commands

  • List a directory
  • `{baseDir}/scripts/workspace-files.sh list-dir "01_AGENTS"`
  • Read a text file
  • `{baseDir}/scripts/workspace-files.sh read-file "TOOLS.md"`
  • Write a text file
  • `{baseDir}/scripts/workspace-files.sh write-file "07_OUTPUTS/test.txt" "hola mundo"`
  • Search files by name
  • `{baseDir}/scripts/workspace-files.sh search-files "SKILL.md"`

Commands Reference

list-dir

`{baseDir}/scripts/workspace-files.sh list-dir "<relative_path>"`

Examples:

  • `{baseDir}/scripts/workspace-files.sh list-dir "."`
  • `{baseDir}/scripts/workspace-files.sh list-dir "01_AGENTS"`

read-file

`{baseDir}/scripts/workspace-files.sh read-file "<relative_path>"`

Examples:

  • `{baseDir}/scripts/workspace-files.sh read-file "TOOLS.md"`
  • `{baseDir}/scripts/workspace-files.sh read-file "01_AGENTS/_REGISTRY.md"`

write-file

`{baseDir}/scripts/workspace-files.sh write-file "<relative_path>" "<content>"`

Example:

  • `{baseDir}/scripts/workspace-files.sh write-file "07_OUTPUTS/demo.txt" "contenido de prueba"`

search-files

`{baseDir}/scripts/workspace-files.sh search-files "<pattern>"`

Examples:

  • `{baseDir}/scripts/workspace-files.sh search-files "SKILL.md"`
  • `{baseDir}/scripts/workspace-files.sh search-files "compa"`

Notes

  • Only use relative paths inside the workspace sandbox.
  • Intended for text files and directory inspection.
  • Do not use for binary editing.
  • Do not assume write access outside the sandbox.

Use Cases

  • List, read, and write files safely within the OpenClaw workspace sandbox
  • Create and manage text files, JSON data, and configuration in the workspace
  • Build file-based workflows that stay within the secure sandbox boundaries
  • Organize workspace file structures for OpenClaw skill development
  • Export and import data through workspace file operations

Pros & Cons

Pros

  • +Sandbox safety — all operations confined to the OpenClaw workspace directory
  • +Covers the essential file operations — list, read, write, and manage
  • +Secure by design with path validation to prevent sandbox escapes

Cons

  • -Limited to the OpenClaw workspace — cannot access files outside the sandbox
  • -Text file focused — limited support for binary files or media

FAQ

What does Workspace Files do?
Work safely with files inside the OpenClaw workspace sandbox. Use for listing directories, reading text files, writing text files, and searching files by nam...
What platforms support Workspace Files?
Workspace Files is available on Claude Code, OpenClaw.
What are the use cases for Workspace Files?
List, read, and write files safely within the OpenClaw workspace sandbox. Create and manage text files, JSON data, and configuration in the workspace. Build file-based workflows that stay within the secure sandbox boundaries.

100+ free AI tools

Writing, PDF, image, and developer tools — all in your browser.

Next Step

Use the skill detail page to evaluate fit and install steps. For a direct browser workflow, move into a focused tool route instead of staying in broader support surfaces.