glob
Locate files by glob pattern using recursive matching, sorted newest first. Skips hidden and generated directories and paginates results for efficient workspace search.
Instructions
Finds files matching a glob pattern. Supports ** recursive matching and sorts results by modification time (newest first). Defaults to 200 workspace-relative paths and 32768 characters per page. Skips hidden and common generated/vendor directories unless explicitly included. Returns total/has_more/truncated metadata and an opaque next_cursor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory to search. Defaults to configured workspace, MCP client root, or current directory | |
| limit | No | Maximum paths returned per page. Default: 200, Max: 5000 | |
| cursor | No | Opaque continuation cursor returned by a previous glob call | |
| pattern | Yes | Glob pattern to match files (e.g. **/*.go or src/**/*.ts) | |
| include_hidden | No | Traverse hidden directories. Explicit hidden roots are always searched. Default: false | |
| relative_paths | No | Return paths relative to the search directory. Default: true | |
| include_ignored | No | Traverse generated/vendor directories such as node_modules, vendor, target, build, and dist. Default: false | |
| max_output_chars | No | Maximum returned text characters. Default: 32768, Max: 131072 |