>_

lsd

agent-ready json output non-interactive

The next gen ls command

How to install lsd

brew install lsd

lsd use case

List files and directories with enhanced visuals (icons, colors, and formatting) for improved readability and context

When to use lsd

  • When an AI agent needs to display directory contents with detailed metadata like permissions, sizes, and symlink targets
  • When creating human-readable file listings with visual indicators (e.g., icons for file types) for reports or logs
  • When exploring a file system in a terminal and wanting a more intuitive view than standard ls

When not to use lsd

  • When performance is critical and output must be minimal (lsd has overhead for icons/colors)
  • When the output must be parsed by other tools without JSON support (use ls with no formatting)
  • When the terminal does not support Unicode or Nerd Fonts (icons will not render)

lsd features

  • · Colorized output and file-type icons
  • · Grouping and tree-view directory listings
  • · Symlink and permission display
  • · JSON output mode for machine parsing

Want your agent to find this automatically?

Add the MCP server to your agent config and it will discover tools like lsd on its own.

Set up MCP →

Similar tools to lsd