@vladstudio/pi-file-tree

Pi extension: a file_tree tool that returns an ASCII tree structure of a path, with smart auto-depth that fills available context.

Packages

Package details

extension

Install @vladstudio/pi-file-tree from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@vladstudio/pi-file-tree
Package
@vladstudio/pi-file-tree
Version
1.0.0
Published
Jul 9, 2026
Downloads
25/mo · 25/wk
Author
vladstudio
License
MIT
Types
extension
Size
10.6 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@vladstudio/pi-file-tree

Pi extension adding a file_tree tool: ASCII tree of a path.

  • Omit depth → expands to the deepest level fitting 400 lines.
  • Folders-only by default; includeFiles adds files.
  • includeHidden adds dotfiles (.gitignore, .env).
  • ├── / └── connectors.
  • Excludes node_modules, dist.
  • Text files show size and line count.

Parameters

param type default description
path string Path (relative or absolute)
includeFiles boolean false Include files (default: folders only)
includeHidden boolean false Include dotfiles/dotdirs
depth number auto Max depth; unset → auto-expand to fit

Install

pi install npm:@vladstudio/pi-file-tree

Example

5 folder(s), 17 file(s)
extensions
├─ biome
│  └─ index.ts · 3Kb · 124 lines
├─ skim
│  ├─ index.ts · 19Kb · 670 lines
│  └─ package.json · 160b · 10 lines
└─ web_fetch
   └─ index.ts · 3Kb · 90 lines

License

MIT