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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "script_search_code"
}
}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. |