> ## Documentation Index
> Fetch the complete documentation index at: https://graph.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# workbench__glob

> Finds files in the project directory by glob pattern.

* Paths are relative to the project directory and sorted.
* Skips gitignored files.

| Available to | Effect |
| - | - |
| Workbench agents only | Read-only |

## Input

**dir** `string`

Directory subtree to search. Default: the project directory.

**pattern** `string` *required*

Glob matched against project-relative paths, e.g. **/\*.rs or docs/**/\*.mdx.

## Output

**count** `integer`

**files** `string[]`

**truncated** `boolean`

```json Output theme={null}
{
  "count": 1,
  "files": [
    "crates/graph-cli/src/main.rs"
  ],
  "truncated": false
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.