Local File Reader for Openclaw

A powerful utility for AI agents to access, summarize, and search content across various local file formats.

zhouhouqing
v1.0.0
Mar 8, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install local-file

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 local-file 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 Local File Reader?

The Local File Reader is an essential tool designed for AI agents within the Openclaw Skills ecosystem. It enables seamless interaction with local storage by providing reading, summarization, and keyword search capabilities across multiple file formats including TXT, Markdown, JSON, DOCX, and PDF.

This skill bridges the gap between static local data and AI processing, allowing users to quickly extract insights from documents without leaving their coding environment. It focuses on security and performance by enforcing path-based permissions and file size constraints to ensure a smooth developer experience.

Local File Reader Use Cases

  • Quick summarization of long PDF documents or research papers.
  • Extracting specific configuration data from local JSON or TXT files.
  • Searching for specific keywords across local documentation and Markdown files.
  • Integrating local file content into AI-driven coding, debugging, or writing workflows.

How Local File Reader Works

  1. The AI agent detects a trigger phrase such as "read file," "view file," or "open file."
  2. The agent validates the provided file path against user-authorized directories and checks if the file size is under the 10MB limit.
  3. Depending on the specific command (read, summarize, or search), the skill extracts the raw text or performs the requested processing logic.
  4. The processed content, summary, or search results are returned directly to the agent's context for immediate use.

Local File Reader Setup

To use this skill, ensure your environment is configured and the skill is enabled in your Openclaw Skills configuration.

# Standard activation within the Openclaw environment
openclaw install local-file-reader

Ensure that the directories you wish to access are included in your workspace permissions to avoid access denied errors.

Local File Reader Data Schema & Taxonomy

The skill operates on local filesystem metadata and content. It follows this schema for processing and output:

Attribute Description
File Path The absolute or relative path to the target document.
File Type Supported extensions: .txt, .md, .json, .docx, .pdf.
Content Extracted text stream optimized for LLM consumption.
Constraints Max size: 10MB; Path: Restricted to authorized workspaces.

Local File Reader Advanced Features

  • Multi-format support including complex documents like PDF and DOCX for Openclaw Skills.
  • Integrated summarization logic to handle large text blobs efficiently without exceeding token limits.
  • Targeted keyword search to minimize token usage when dealing with large local files.
  • Strict security enforcement via workspace-only access protocols to protect user data privacy.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*