script_grep
Search Roblox Studio scripts for substrings or /regex/ and return matching paths, line numbers, and lines; limit results and scope searches to specific instance paths.
Instructions
Search across all scripts in Studio (or under paths) for a substring or /regex/. Returns ~N-safe paths, line numbers, and matching lines.
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_grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Max matches returned. Default 100. | |
| paths | No | Only search scripts under these instance paths. | |
| query | Yes | Substring or /regex/flags. | |
| studio | No | Optional. Target Studio (name substring, place id or id). Only needed when several Studios are open and none was selected. |