Less Tool for Openclaw

A high-performance interactive file viewer that enables AI agents to navigate large documents through pagination, scrolling, and advanced search.

dinghaibin
v1.0.0
Apr 30, 2026
0
699
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install less-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 less-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 Less Tool?

The Less Tool is a powerful utility designed to bring the classic functionality of the Unix less command to modern AI workflows. It allows for efficient inspection of large text files, codebases, and logs without exhausting system memory, as it only loads the necessary portions of the file into the viewer. By integrating this capability through Openclaw Skills, developers can empower their AI agents to handle extensive data sources with precision and speed.

This tool is particularly useful for debugging and code review tasks where context window limits might otherwise prevent the processing of massive files. With built-in support for interactive scrolling and pattern matching, it bridges the gap between raw data and actionable intelligence.

Less Tool Use Cases

  • Reviewing massive application log files without crashing the environment.
  • Navigating through long source code files to identify specific functions or bugs.
  • Searching for specific patterns or error codes within historical data dumps.
  • Implementing paginated reading for AI agents to stay within token limits.

How Less Tool Works

  1. The AI agent or user invokes the tool via the less-tool command followed by the target file path.
  2. The tool initializes a virtual window, loading only the specific segment of the file required for the current view.
  3. User or agent inputs (like space for paging or / for search) are processed to navigate the file buffer.
  4. Search queries use optimized pattern matching to find and jump to the next relevant instance of a string.
  5. The tool maintains a lightweight memory footprint by discarding out-of-view data until explicitly requested.

Less Tool Setup

To add this capability to your environment via Openclaw Skills, run the following command:

# Install the less-tool package
npm install @openclaw/less-tool

# Or add it directly to your agent configuration
openclaw skill add less-tool

Ensure your environment has the necessary permissions to read the target directory structures.

Less Tool Data Schema & Taxonomy

Feature Description Key Mapping
Pagination Load data by page Space / b
Line Scrolling Incremental movement j / k
Search Forward and backward regex / or ?
Navigation Jump to specific line -N flag
Termination Exit the viewer q

Less Tool Advanced Features

  • Memory-efficient loading of multi-gigabyte log files using buffer streaming.
  • Support for line numbering to facilitate precise debugging and cross-referencing.
  • Bidirectional search functionality to locate patterns in both past and future file segments.
  • Seamless integration with Openclaw Skills for automated multi-step log analysis workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*