search_files
Recursively search file contents to find where a string or pattern is used, automatically skipping build output and version-control directories to surface only source code matches.
Instructions
Search file contents recursively and report matching lines.
This is the tool for "where is X used" and "what creates the swapchain". Prefer it over reading files one by one: it is the cheapest way to locate code in a large tree.
Build output and version-control directories are skipped automatically (.git, build, out, bin, obj, x64, Debug, Release, Intermediate, node_modules and similar), as are binary files. On a game project the build tree is far larger than the source, so this is what keeps the search fast and the results readable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| regex | No | ||
| pattern | Yes | ||
| file_glob | No | ||
| ignore_case | No | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |