Glob
globList files matching a pattern and identify which are already cached, so you can avoid unnecessary reads. Use cached_only to view cached files, then batch-read the rest.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>"
},
"name": "glob"
}
}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. |