Skip to content

Open-source, local-first AI agent for real work.

645 B
Raw Blame
export const LS_TOOL_DESCRIPTION =
	"List directory contents. Returns entries sorted alphabetically, with '/' suffix for directories. Includes dotfiles. Output is truncated to 500 entries or 30KB (whichever is hit first).\n\nALWAYS use this tool to list directory contents. NEVER use bash ls — this tool provides consistent output formatting.\n\nWhen to use `ls` vs other tools:\n- Use `ls` to list immediate contents of a single directory\n- Use `dir_tree` to visualize nested directory structure with hierarchy and counts\n- Use `glob` to find files by path or name pattern across directories\n- Use `grep` to search for text inside files";