List
listList sorted directory entries or ASCII tree with configurable depth, pagination, and filters for hidden or ignored files.
Instructions
List sorted directory entries and an ASCII tree. maxDepth=1 is top-level. maxEntries sets page size; continue with nextCursor. resourceUri is only for hard-cap overflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory to list (default: first allowed root) | |
| cursor | No | Opaque pagination cursor; pass unchanged for the next page. Pages slice one snapshot taken on the first call; it expires after ~60s — re-request without a cursor if rejected. | |
| maxDepth | No | Max directory depth to traverse (default: 1 = top-level only; increase to recurse deeper) | |
| maxEntries | No | Page size (default: 1000). Continue with nextCursor; resourceUri is only for hard-cap overflow. | |
| includeHidden | No | Include hidden items (starting with .) | |
| includeIgnored | No | Include ignored items (node_modules, .git, etc). |