360 Secure SkillHub
360 安全技能中心

Less Tool

该 Skill 以命令行的方式打开文件并以分页形式显示内容,支持向后/向前翻页、逐行滚动、正反向搜索、跳转下一个匹配以及行号显示,适合阅读日志、代码和大型文本文件,只加载所查看部分以支持大文件。

dinghaibin
dinghaibin
热度 31.01
最近更新 2026-05-11 17:46:41
分类:效率依赖:读写文件 / 代码执行

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add less-tool
Metadata
name
less-tool
description
View file contents with interactive scrolling and search. Use for reading log files, code, and large text documents with pagination.

Less - Interactive File Viewer

View file contents with forward and backward scrolling, search functionality, and line number navigation. Supports large files by loading only the viewed portion into memory.

Usage

less-tool [options] <file>

Navigation

  • Space: Forward one page
  • b: Back one page
  • j/k: Scroll up/down one line
  • /pattern: Search forward
  • ?pattern: Search backward
  • n: Next match
  • q: Quit

Examples

less-tool large_log.txt
less-tool -N script.py