360 Secure SkillHub
360 安全技能中心

Less Tool

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

分类:效率
dinghaibin
dinghaibin
热度 23.29
最近更新 2026-05-11 17:46:41

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dinghaibin/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