search_files
Locate files and directories by glob, regex name, size, age, or type without shelling out to find; get consistent cross-platform results, sortable by path, size, or mtime.
Instructions
Find files and directories by name glob, size, age or type — the find you would otherwise shell out for, with consistent output on every platform. Sorts by path, size or mtime.
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": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Only these paths, as globs: ["*.ts","src/**/*.js"]. A pattern without "/" matches the basename at any depth. | |
| name | No | Regex on the file name (alternative to glob). | |
| path | No | File or directory to search. Default: server cwd. | |
| sort | No | Ordering. size and mtime sort descending. | |
| type | No | What to return. Default file. | |
| limit | No | Max entries returned. Default 300. | |
| details | No | Include size and mtime. Default true. | |
| exclude | No | Globs to skip. | |
| max_size | No | Only entries at most this many bytes. | |
| min_size | No | Only entries at least this many bytes. | |
| max_bytes | No | Byte cap on the returned text. Lower it to save tokens. | |
| max_depth | No | Recursion depth. Default 24. | |
| skip_dirs | No | Directory names not to enter. | |
| show_hidden | No | Include dotfiles. | |
| respect_gitignore | No | Honour .gitignore. Default true. | |
| modified_before_hours | No | Only entries untouched for at least N hours. | |
| modified_within_hours | No | Only entries touched in the last N hours. |