file-browser-tool for Openclaw

file-browser-tool is a read-only workspace skill that helps AI agents safely browse directories, read files, and return structured results with high efficiency.

thcjp
v1.0.0
Aug 2, 2026
0
289
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install file-browser-tool

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install file-browser-tool using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is file-browser-tool?

file-browser-tool is a read-only file browsing and reading skill designed for AI agents working inside a SkillHub workspace. It lets agents inspect directories, read text files, and process workspace content without modifying files, making it a safe choice for analysis, extraction, and document review workflows in Openclaw Skills.

This skill is optimized for relative-path navigation, JSON-oriented output, and repeatable automation patterns. In Openclaw Skills, it is especially useful when you need fast file discovery, content extraction, formatting conversion, and structured metadata handling while preserving workspace safety and reducing manual effort.

file-browser-tool Use Cases

  • Browse workspace directories in a read-only way.
  • Read text files for analysis, summarization, or extraction.
  • Convert file content into JSON, text, or Markdown output formats.
  • Inspect file metadata and directory structures for documentation or research.
  • Automate repeated file lookup and reading tasks inside SkillHub.
  • Support workflow steps that require safe, non-destructive file access.
  • Process logs, reports, and dataset files without manual navigation.
  • Use Openclaw Skills when you need secure workspace inspection instead of local file editing.

How file-browser-tool Works

  1. Confirm the environment meets the skill requirements, including supported operating systems and a compatible AI agent runtime.
  2. Pass a relative workspace path to the skill through the agent conversation or tool call.
  3. The skill resolves the relative path against the workspace root and performs a read-only directory or file operation.
  4. The tool returns structured output, including file lists, file content, metadata, or execution status depending on the request.
  5. The agent checks the returned result, handles any error conditions, and optionally continues with downstream processing.
  6. For advanced workflows, optional parameters such as output mode, retry count, and skipped steps can be used to control formatting and continuation behavior.

file-browser-tool Setup

Requirements

  • Supported AI agent platforms: Claude Code, Cursor, Codex, Gemini CLI, and similar SKILL.md-compatible agents.
  • Supported operating systems: Windows, macOS, Linux.
  • Required capability: LLM API access provided by the agent runtime.

Configuration

Set your API key as an environment variable:

export API_KEY="${API_KEY:?please set environment variable}"

After configuring credentials, restart the session or open a new terminal so the environment changes take effect. Keep API keys out of version control and store them securely.

Usage notes

  • Use relative paths from the workspace root only.
  • Ensure files are UTF-8 encoded for reliable reading.
  • Keep file reads within the documented size and depth limits.
  • Use the agent’s tool invocation flow to call file-browser-tool in Openclaw Skills.

file-browser-tool Data Schema & Taxonomy

file-browser-tool organizes its data around a simple request/response contract optimized for read-only workspace access in Openclaw Skills.

Input fields

Field Type Required Purpose
rel_path string No Relative path to a file or directory in the workspace.
mode string No Output format: json, text, or markdown. Default: json.
max_retries integer No Maximum retry attempts per step. Default: 2.
skip_steps array No Step numbers to skip for checkpoint/resume workflows.

Output structure

{
  "success": true,
  "data": {
    "final_result": {
      "tool_result": "tool_result_value",
      "tool_metadata": "tool_metadata_value",
      "tool_status": "tool_status_value"
    },
    "execution_log": [
      {
        "step": 1,
        "name": "step name",
        "status": "completed",
        "duration_ms": 1200,
        "output_summary": "summary"
      }
    ],
    "total_duration_ms": 7600,
    "gates_passed": 3,
    "gates_total": 3
  },
  "error": null
}

Metadata taxonomy

  • success: Boolean success flag.
  • data.final_result: Main tool payload, metadata, and status.
  • data.execution_log: Step-by-step execution trace.
  • data.total_duration_ms: Total runtime in milliseconds.
  • data.gates_passed / data.gates_total: Workflow gate progress.
  • error: Error message when execution fails.

Behavioral constraints

  • Read-only operations only; no file mutation.
  • Paths are resolved relative to the workspace.
  • Single-file concurrency is constrained to preserve access safety.
  • Large or binary files may return error responses instead of content.

file-browser-tool Advanced Features

  • Read-only execution that prevents accidental file modification, a core value of Openclaw Skills.
  • Relative-path resolution to simplify workspace navigation and reduce path management overhead.
  • Structured JSON output for easy chaining into downstream agent steps and automation pipelines.
  • mode switching for JSON, text, and Markdown rendering.
  • max_retries control for resilient step execution.
  • skip_steps support for checkpoint-based continuation and interrupted workflows.
  • Execution logs with step status and timing for debugging and observability.
  • Safe workspace browsing for research, report generation, log analysis, and content extraction.
  • Strong boundary handling for unsupported encodings, oversized files, permission issues, and missing paths.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*