Find files
find_filesLocate files by name pattern, type, or modification time and return a structured path list; combine multiple glob patterns with OR logic or filter to recently modified files.
Instructions
Find files by name pattern, type, or modification time. Returns structured list of paths. Use names for multiple glob patterns (OR logic), modifiedWithin for recent files (e.g. '7d', '1h').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Filename glob pattern (e.g. '*.ts') | |
| path | No | Root directory to search (default: '.') | . |
| type | No | Filter by type | |
| names | No | Multiple filename glob patterns (e.g. ['*.ts', '*.py', '*.sh']). Combined with OR logic. | |
| pattern | No | Alias for name — filename glob pattern (e.g. '*.ts') | |
| maxDepth | No | Max search depth | |
| withMetadata | No | Include size (bytes) and mtime (unix timestamp) for each file | |
| modifiedWithin | No | Modified within timespan (e.g. '7d', '1h') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| files | Yes | ||
| metadata | No | ||
| retained | No |