glob
Discover files by glob pattern and indicate which are already cached. Restrict results with cached_only=true to preview search or grep results without extra reads.
Instructions
Discover files by glob and show which are already cached.
Use before batch_read/search/grep. cached_only=true shows what
search/grep can see without more reads.
Args: pattern: Glob pattern to expand. directory: Base directory for the glob. cached_only: Restrict results to already cached files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| directory | No | . | |
| cached_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | ||
| pattern | No | ||
| directory | No | ||
| matches | No | ||
| total_matches | No | ||
| cached_count | No | ||
| total_cached_tokens | No |