script_search_code
Find any text or pattern across all Roblox Scripts, LocalScripts, and ModuleScripts. Returns file paths, line numbers, and code snippets for quick code location.
Instructions
Perform a project-wide code search across all Scripts, LocalScripts, and ModuleScripts. Returns matching script paths, line numbers, and code snippets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text or pattern to search for across all project scripts. | |
| scope | No | Root scope to search within (e.g. "ReplicatedStorage", "ServerScriptService", "StarterPlayer", "game"). | game |
| isRegex | No | Whether query is a regular expression. Default false. | |
| maxResults | No | Maximum matching snippets to return. Default 50. | |
| caseSensitive | No | Whether search should be case-sensitive. Default false. |