glob
Find files and directories that match a pathlib-style pattern, optionally within a specific search root and with a cap on returned matches.
Instructions
Find files and directories matching a glob pattern.
Args:
pattern: A pathlib-style glob, e.g. **/*.py or src/**/*.ts.
path: Directory to search within (absolute or root-relative, default root).
max_results: Cap on returned matches (default 1000).
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 |
|---|---|---|---|
| path | No | . | |
| pattern | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |