GlobTool
Finds files matching a glob pattern. Returns paths sorted by modification time — most recently modified first. Usage pattern:| Pattern | Matches |
|---|---|
**/*.ts | All TypeScript files |
src/**/*.test.ts | Test files under src/ |
**/*.{json,yaml,yml} | JSON and YAML files |
**/index.{ts,tsx,js} | Index files |
**/.env* | Environment files |
GrepTool
Searches file contents using regular expressions, powered by ripgrep. Returns file paths and line numbers for all matches, sorted by modification time. Usage pattern:ToolSearchTool
Deferred tool discovery — searches for available tools (including MCP tools) that match a description. Used internally when Claude needs a capability it doesn’t have loaded yet. This tool runs automatically in the background; you don’t invoke it directly.For large codebases, Claude often combines GlobTool (to find relevant files) and GrepTool (to find specific patterns within them) in sequence to efficiently locate code without reading every file.