glob
List files matching a pattern and identify cached ones to avoid unnecessary reads.
Instructions
List files matching a glob and show which are already cached.
Use it to discover files and see what search/grep can already access
before you spend reads. Each match carries a cached flag; set
cached_only=true to list only files already in the cache. Pair it with
batch_read to pull in whatever isn't cached yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Glob pattern to match (e.g. `src/**/*.py`). | |
| directory | No | Base directory the pattern is evaluated from. | . |
| cached_only | No | Return only files that are already cached. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matches | No | ||
| pattern | No | ||
| directory | No | ||
| truncated | No | ||
| cached_count | No | ||
| total_matches | No | ||
| total_cached_tokens | No |