List Files
list_filesEnumerate files by glob pattern or type without reading contents; respects .gitignore and excludes hidden files by default.
Instructions
Fast file enumeration matching glob patterns or file types without scanning file contents. Respects .gitignore and excludes hidden files by default.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory to list files in (relative or absolute; default: '.'). | . |
| noIgnore | No | If true, include files ignored by .gitignore. Default: false. | |
| filePattern | No | Glob pattern to include, e.g. '*.{ts,tsx}' or '**/*.config.js'. | |
| includeHidden | No | If true, include hidden dotfiles and dot-directories (excludes .git by default). Default: false. | |
| excludePattern | No | Comma-separated glob patterns to exclude, e.g. '**/dist/**,**/*.test.ts'. |