fs_list
List directories or stat a path with depth-based recursion, glob pattern matching, and default skipping of .git, node_modules, and dist. Set entry limits and byte caps to save tokens.
Instructions
List a directory (or stat one path). Recurses to "depth", filters with a glob "pattern", and skips .git/node_modules/dist and friends by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory (or file) to list. Default: server cwd. | |
| depth | No | Recursion depth. Default 1. | |
| details | No | Include file sizes. Default true. | |
| pattern | No | Glob filter on the relative path, e.g. "*.ts" or "src/**/*.js". | |
| max_bytes | No | Byte cap on returned output before middle-truncation. Lower it to save tokens. | |
| skip_dirs | No | Directory names not to descend into. | |
| max_entries | No | Cap on listed entries. Default 500. | |
| show_hidden | No | Include dotfiles. Default false. |